ginfuru
8/18/2014 - 10:03 PM

Remove specific Plugin from the Plugin List inside of the Wordpress Dashboard

Remove specific Plugin from the Plugin List inside of the Wordpress Dashboard

<?php
/* Remove specific plugin from the Plugin List
 * update plugin-directory/plugin-file.php whatever plugin
 */ 
add_action('pre_current_active_plugins', 'rdm_hide_plugin');

function rdm_hide_plugin() {
  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]);
      }
    }
  }

?>