Thursday, August 1, 2013

Hide specific plugin from plugin installed list in WordPress


Add bellow code into functions.php file function hideplugin() { global $wp_list_table; $hidearr = array('plugin-folder/plugin.php'); $myplugins = $wp_list_table->items; foreach ($myplugins as $key => $val) { if (in_array($key,$hidearr)) { unset($wp_list_table->items[$key]); } } } add_action( 'pre_current_active_plugins', 'hideplugin' );

0 comments: