Advertisement
Guest User

Hide Plugin

a guest
Sep 11th, 2014
866
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  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');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement