Any update for the latest wp version? Works good in my building material site depo bangunan tbh.
]]>In order to fix the following:
PHP Deprecated: Non-static method DisablePlugins::instance() should not be called statically in .../wp-content/mu-plugins/disable-plugins.php on line 196
edit disable-plugins.php and replace DisablePlugins::instance();
at the bottom with this:
$var = new DisablePlugins();
$var->instance();
Hope this helps someone ??
]]>Upon Activation of the plugin 2 messages on backend:
The plugin generated 250 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.
Strict Standards: Non-static method DisablePlugins::instance() should not be called statically in /path/wp-content/plugins/disable-plugins/disable-plugins.php on line 196
The Strict Standards error also shows on frontend and none of the plugins set in the rules file are disabled
]]>Hi !
seem to be a very simple but useful plugin.
But I installed it as specified, created the directory and tried a basic exclusion rule for homepage.
zbPlayer files is still loading on homepage.
Also, I don’t understand the regular expresions described here:
https://www.ads-software.com/support/topic/plugin-disable-plugins-example-regex-for-single-postpage?replies=2
How should I replace more specific section and page. The url ? The page id ?
Exclude a plugin on a particular page:
^\/section\/page\/$ plugin
Exclude a plugin on all pages except this section:
^((?!\/section\/).)*$ plugin
Thank you !
https://www.ads-software.com/plugins/disable-plugins/
Hi,
I was about to write a plugin using the same approach – and thankfully someone pointed me here!
Reading the code, I have two comments:
1) I wanted to include only on certain URLs, rather than exclude only on certain URLs. (My use case was a forum plugin – I want it only to load when the URL contains /forum).
2) I think that as well as checking for is_admin() (so that all plugins always load on is_admin()), you should also check for WP_CRON, and always load with WP_CRON, to avoid accidentally disabling tasks that plugins perform via cron.
Also – it might help to explicitly say in the installation instructions that the fact that it’s an mu-plugin means that the plugin’s PHP file needs putting in wp-content/mu-plugins (I understood this, but some people might not realise).
David
https://www.ads-software.com/extend/plugins/disable-plugins/
]]>Hello, could you please give me an example of a regular expression which will disable a particular plugin on a particular post/page id??
In your documentation you list an example for disabling Hello Dolly on the home page, but an example of disabling Hello Dolly on a single post id would be FANTASTIC and really help to see how to customize it for any plugin and any particular page. Thanks man for this plugin Ive been searching around ALOT for something like this
https://www.ads-software.com/extend/plugins/disable-plugins/
]]>