Hide plugins from the plugin page

Posted on 16th September, 2017 Leave a Comment

add this to a functions file:

<?php 

add_filter( 'all_plugins', 'hide_plugins');
function hide_plugins($plugins)
{
	// Hide Meta Box
	if(is_plugin_active('meta-box/meta-box.php')) { // plugin folder / plugin file
			unset( $plugins['meta-box/meta-box.php'] );
	}
	return $plugins;
}
 ?>

Leave a Comment

To preserve code added to a comment you can wrap your code in short tags
by using [square brackets]:

  1. PHP use - [php] <?php code here ?> [/php]
  2. CSS use - [css] #code-here {} [/css]
  3. HTML use - [html] <div> code here </div> [/html]
  4. JS use - [js] $(".codeHere") [/js]