Skip to content

Instantly share code, notes, and snippets.

@amrikarisma
Last active July 18, 2022 18:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save amrikarisma/6669b5e32a77c2cbfcada70616e0446e to your computer and use it in GitHub Desktop.
Hide WordPress Plugin from table list (WP Multisite)
<?php
function mu_hide_plugins_network( $plugins ) {
// let's hide akismet
if( in_array( 'akismet/akismet.php', array_keys( $plugins ) ) ) {
unset( $plugins['akismet/akismet.php'] );
}
return $plugins;
}
add_filter( 'all_plugins', 'mu_hide_plugins_network' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment