How to hide plugin from WordPress Multisite admin plugin list

There’s a filter called all_plugins that seems to do the trick for me: add_filter( ‘all_plugins’, ‘wpse156903_hide_plugins’ ); function wpse156903_hide_plugins( (array) $plugins ) { // let’s hide akismet if( in_array( ‘akismet/akismet.php’, array_keys( $plugins ) ) ) { unset( $plugins[‘akismet/akismet.php’] ); } // hide multiple plugins $hidearr = array( ‘plugin1/plugin-file.php’, ‘plugin2/plugin-file2.php’, // and so on ); foreach( … Read more

Activate Child Theme with Codex

Use switch_theme as already indicated in another answer, but hook it to wpmu_new_blog This function runs when a user self-registers a new site as well as when a super admin creates a new site. hook to ‘wpmu_new_blog’ for events that should affect all new sites. https://codex.wordpress.org/function_reference/wpmu_create_blog If not the code will run constantly, which will … Read more