Last active
October 19, 2019 18:10
-
-
Save r4nd1/39adc71df45802681e8eedd4b778cd14 to your computer and use it in GitHub Desktop.
Hide plugins list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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