Guest User

Hide Plugin

a guest
Sep 11th, 2014
431
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function hide_plugin_trickspanda() {
  2.   global $wp_list_table;
  3.   $hidearr = array('jigoshop/jigoshop.php');
  4.   $myplugins = $wp_list_table->items;
  5.   foreach ($myplugins as $key => $val) {
  6.     if (in_array($key,$hidearr)) {
  7.       unset($wp_list_table->items[$key]);
  8.     }
  9.   }
  10. }
  11.  
  12. add_action('pre_current_active_plugins', 'hide_plugin_trickspanda');
RAW Paste Data