On a multisite network, I have some plugins that are network activated so they run on every site in the network. However, I want to disable all of the network active plugins on some of the sites.
How can I do this?
On a multisite network, I have some plugins that are network activated so they run on every site in the network. However, I want to disable all of the network active plugins on some of the sites.
How can I do this?
Comments are closed.
Multisite-wide active plugins are stored in the
active_sitewide_plugins
site option. We can hook into this option and return an empty array (no plugins are active).This snippet should be installed as a Must-Use Plugin.
Remember to replace
array( 6, 9, 42 )
with an array of the blog IDs you want to disable network-wide plugins on.