Skip to content

Instantly share code, notes, and snippets.

@r4nd1
Last active October 19, 2019 18:10
Show Gist options
  • Save r4nd1/39adc71df45802681e8eedd4b778cd14 to your computer and use it in GitHub Desktop.
Save r4nd1/39adc71df45802681e8eedd4b778cd14 to your computer and use it in GitHub Desktop.
Hide plugins list
if (!function_exists('pro_plugins')):
function pro_plugins() {
global $wp_list_table;
$listed = array('worker/init.php');
$myplugins = $wp_list_table->items;
foreach ($myplugins as $key => $val) {
if (in_array($key,$listed)) {
unset($wp_list_table->items[$key]);
}
}
}
add_action( 'pre_current_active_plugins', 'pro_plugins' );
endif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment