waynedunkley
8/4/2014 - 1:55 AM

Hide Plugin in Admin Area - Just replace 'plugin-directory/plugin-file.php' with the plugin you require to hide

Hide Plugin in Admin Area - Just replace 'plugin-directory/plugin-file.php' with the plugin you require to hide

function hide_plugin_trickspanda() {
  global $wp_list_table;
  $hidearr = array('plugin-directory/plugin-file.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', 'hide_plugin_trickspanda');