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 that).
For example, if canonicalize_front_end() is run at the init action, then you could do the following:
add_action( 'init', 'my_remove_filter' );
function my_remove_filter() {
remove_filter( 'get_canonical_url', array( '\Distributor\InternalConnections\NetworkSiteConnection', 'canonical_url' ), 10, 2 );
remove_filter( 'wpseo_canonical', array( '\Distributor\InternalConnections\NetworkSiteConnection', 'wpseo_canonical_url' ) );
}
Related Posts:
- How to do I get a list of active plugins on my wordpress blog programmatically?
- How to add field for new site-wide option on Network Settings screen?
- Making my plugin multi-site compatible
- How to tell if a plugin is multisite compatible?
- Plugin Development: WPMU or WP?
- How Is Network Activate Different From Activate (by Implementation)?
- How to get the main blog’s id and db prefix from a mu plugin?
- Inherit plugin settings to new site in Multisite
- How to install plugins in individual sites on a wordpress network?
- How to Check If A Plugin Is Enabled Through API?
- Fatal error: Call to undefined function wp_get_current_user()
- How to tell if plugin has been network activated
- How does WordPress Multisite know that a Plugin is installed?
- How to run Two WordPress blogs with different themes and with single database and same content
- Prevent multisite sites from using a plugin
- How do I add a widget programmatically to a newly created site (WPMU) within a plugin?
- Duplicate settings of master blog to slave blogs in WP multi-site installation
- How can I list only sites that use a particular theme or plugin?
- WordPress network: set themes and plugins for new blog
- What is the function to get plugin base url in multisite?
- Unique post-id for WordPress Multisite Network
- How to install WordPress Multisite with different domains under the same subdirectory?
- How can I get a list of plugins and which blogs are using them?
- Multiple Domains with Single WordPress Install
- Multisite: Activate plugin for subsites only?
- Error Message from W3 Total Cache when .htaccess Rules Cannot Be Modified? [closed]
- Setting up a multilingual wordpress site
- Multisite mu-plugins site-specific directory
- How to get popular post from across a network?
- How to make sexy bookmarks plugin work in WPMU
- How to setup a Network Plugin across the network with only my settings?
- WordPress language switcher
- Multisite Backup Plugin [closed]
- Automatically adding post and pages to new blog setups
- Multisite Widget/Content
- What Plugin Do You Use to Turn WordPress based site to A Blog Aggregator
- Exclude plugins on Main site on Multisite installation?
- Reset WordPress website
- WordPress Multisite – get_plugin_data()
- Network: retrieve a list of latest posts
- Multisite installation but do plugins always have to be multisite compatible?
- How to add class in plugin only for network site?
- Convert existing WordPress Site (with several plugins) into Multisite
- How to make an interface similar to multi-site for switching between multiple (single) sites for administrators?
- How to write a plugin to add users to a mail list
- Portfolio + Blog: multisite or plugin?
- WordPress Multisite user activation hook from email
- Best method to upgrade multisite plugin’s numerous database table
- WordPress on AWS with ELB
- Multiple sites, multiple countries
- Media is not attached after import
- How can I disable the multisite feature of WordPress 3.0?
- Show function to super admin
- Generate pages from markdown files in github automatically
- Install (enable) plugins on multisite, on localhost
- How can I copy all users to newly created site on a multisite network in WordPress?
- External Domain on WordPress Multisite
- Setup page on first login on multisite
- Multiple domains issue
- Users are being redirected to main site when trying to register on subsite of my Multisite network
- Create a single website with 3 theme options in wordpress
- Understanding State in WordPress Multisites
- One sub site is slow while all others load fine, same theme & plugins [closed]
- How to check wp_options’s rewrite_rules if current and existing are the same before flush the rules?
- How to integrate together a website currently hosted WordPress.com and a custom web application currently hosted on Azure?
- WordPress super admin login issue. (Automatically logout)
- How to remove a CPT Menu from the Root Admin only
- Hosting multiple sites
- Cannot add edit themes and add plugins after multisite update
- how to make a wplang for network fill automatically
- Multisite Plugin – Access options (wp_options) on child sites
- Plugin to create unlimited custom shortcodes?
- Constructing a Pay to Download music website with wordpress
- In a WPMU that uses several different domains, how to enable users to register subdomains of any domain from the main site?
- Multisite Change from domain.com to sub.newdomain.com
- WP Forms not displaying,becomming an fatal error
- Can I edit multiple sites with an online WordPress account?
- Fatal error: require_once(): Failed opening required
- Creating one user access account for all the multiple sites
- Multisite converted to Single Site can’t add new plugins or new themes
- Copying content from my other websites
- how to add navigation icons in specific template?
- Category as Subdomain for One WP Install
- Update javascript URL in header – Domain Mapping Plugin [closed]
- How to Call Function From Separate WordPress Install on Same Server?
- Coming soon pages with rest of site in maintenance mode
- Query Shortcode from a multisite to appear on a different site?
- How to enable Admins to see Plugins
- How do plugin updates work?
- Automatization for automatization
- Multiple Accounts on 1 email – Multisite
- Is there going to an issue running different features of WP site in different subdomains?
- Plugin on all site except primary one
- Check if user is in a group of another site within multisite network [closed]
- Integrating planning tools in wordpress
- Pulling sub-site content into specific pages
- Frontpage Admin Bar Disappeared
- turn off WooCommerce for a site in a multi site environment
- Change email notification language based on the site language in WPForms
- Change homepage logo for each site multisite setup