Remove filter from WordPress Plugin
You can’t just add remove_filter() and have it remove the filters. remove_filter() always has to happen after the callback you want to remove is added. Your remove_filter() call is most likely run before the plugin’s add_filter(). You need to find where/when that plugin hooks canonicalize_front_end() and then run your removal accordingly (i.e. at or after … Read more