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?
- How to tell if a plugin is multisite compatible?
- WordPress sharding: which multi-DB plugin to use?
- How to get the main blog’s id and db prefix from a mu plugin?
- What is a Network Activated Plugin Exactly?
- How to run Two WordPress blogs with different themes and with single database and same content
- Sharing Ad Revenue among Users of a Multisite in a Collaborative Model?
- While using WordPress Multisite is it possible to display data to main site from subsites?
- Prevent multisite sites from using a plugin
- Is it possible to run plugin code when a multisite blog is deleted?
- Multi domain, multi sites with different themes and content
- Getting Custom Post Type content from main-site of a Multisite
- 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?
- Posts wont expire
- Multisite functions to communicate with individual site functions
- WordPress network: set themes and plugins for new blog
- I’m trying to create security question field for my login page
- What is the function to get plugin base url in multisite?
- Unique post-id for WordPress Multisite Network
- How can I get a list of plugins and which blogs are using them?
- Multiple Domains with Single WordPress Install
- Duplicate a Multi-Site Subdomain
- How to get last_updated and newest_blogs in WP 3.0
- Display All Non-Used Plugins
- Multisite mu-plugins site-specific directory
- Multisite Backup Plugin [closed]
- Having separate plugins and themes folder for multi-site setup
- Creating Custom Roles for use on a WordPress Multi-site Instance?
- What Plugin Do You Use to Turn WordPress based site to A Blog Aggregator
- Check if User exists in WordPress Multisite
- Plugin to list active plugins across networked sites
- Exclude plugins on Main site on Multisite installation?
- How to hide plugin from WordPress Multisite admin plugin list
- Network: retrieve a list of latest posts
- Unable to install theme recommended plugins on Multisite
- How to add class in plugin only for network site?
- 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
- My Category is too big on the Menu what can i do?
- WordPress Multisite user activation hook from email
- Best method to upgrade multisite plugin’s numerous database table
- WordPress on AWS with ELB
- Media is not attached after import
- Any recommendation on how to manage ads?
- Plugins not showing in Multisite dashboard
- There is any way to remove post-format filter? [closed]
- WordPress multi domain – redirect
- Setup page on first login on multisite
- Subdomains with almost the same content
- Will these plugins work with wp multisite?
- Add custom text color WordPress 3.9 TinyMCE 4 Visual editor
- Redirect to another page using contact form 7? [closed]
- Network activating; if ( !current_user_can( ‘manage_options’ ) ) locks me out…
- Multisite – maximum number of users with specific role
- Create a single website with 3 theme options in wordpress
- WordPress Multisite: Programmatically Activate / Deactivate a Plugin of a Specific Blog
- How to see which sites use my installed plugins (wordpress multisite)
- WordPress super admin login issue. (Automatically logout)
- Hosting multiple sites
- Redirect Plugins.php to New Plugin Page
- Issue removing Media Editor Tabs — Duplicate Items
- Creating teams of users in WordPress
- Do WordPress plugins suport multisite site?
- Multisite Plugin – Access options (wp_options) on child sites
- Share plugins, themes, and multi post in a multidomain network
- Multisite Change from domain.com to sub.newdomain.com
- Activation flow of a plugin in a multisite environment
- Hide fields in woocommerce settings
- Javascript embedded disappears for editors
- Can I edit multiple sites with an online WordPress account?
- Fatal error: require_once(): Failed opening required
- How to implement data residency in my WordPress site
- the content of the uploads folder gets deleted periodically, how to figure out what causes it?
- Creating one user access account for all the multiple sites
- how to add navigation icons in specific template?
- Why my multisite is this slow? (stats inside)
- How to set plugin across network in multisite and modify it in one place?
- Update javascript URL in header – Domain Mapping Plugin [closed]
- Any way to force a specific plugin to use single site tables in multisite installation?
- How do plugin updates work?
- Automatization for automatization
- How know the “admin” blog from wordpress multisite?
- Is there going to an issue running different features of WP site in different subdomains?
- Plugin on all site except primary one
- WordPress MU LDAP connection failures
- Plugin menu replaced by another plugin?
- Integrating planning tools in wordpress
- WordPress internationalization + domains
- Internationalization of Blog Posts
- Active Plugins for current blog in WP Multisite Network? [duplicate]
- Plugin De/Activation Not Firing On MultiSite install
- Pulling sub-site content into specific pages
- I want to create a Visual Recipe site on WordPress, any suggestions or tips on how i can do it? [closed]
- Frontpage Admin Bar Disappeared
- Turning Existing Eccommerce Site into Multi-SIte
- turn off WooCommerce for a site in a multi site environment
- Change email notification language based on the site language in WPForms