I’m using mu-plugins, http://codex.wordpress.org/Must_Use_Plugins.
These plugins are showing in plugins.php, http://d.pr/i/JIvX.
Is there any way to hide it?
Thanks.
I’m using mu-plugins, http://codex.wordpress.org/Must_Use_Plugins.
These plugins are showing in plugins.php, http://d.pr/i/JIvX.
Is there any way to hide it?
Thanks.
Comments are closed.
The solution to this request is filtering
show_advanced_plugins
. This filter is called twice, once formustuse
– and once fordropins
-plugins.The filter accepts two parameters, the first one being the standard value (
true
), and the second one being the type of the advanced plugin (Must-Use and Drop-In).So returning false does the trick, if your condition is met. If you want Dropt-Ins to be hidden as well, just set the function to
return false
.Please be aware that a Plugin can alter this filter, so you may have to change the priority to achieve the desired results (3rd parameter). Also return the
$default
value in the standard case, to allow other functions the same functionality.And here comes the code:
You can hook into the
views_plugins
filter and unset the mustuse item:Note: It will still be possible to access the mu plugins list by entering an url like
plugins.php?plugin_status=mustuse
.