Show Network-Active Plugins on Subsite Plugin Screens
Lists network-activated and must-use plugins on each site's Plugins screen for site admins, so they can see what is running without asking.
Opens WPIDE on
Code
if ( ! is_multisite() ) {
return;
}
add_filter( 'show_network_active_plugins', '__return_true' );
add_filter( 'show_advanced_plugins', function ( $show, $type ) {
return 'mustuse' === $type ? true : $show;
}, 10, 2 );
Notes
Site admins can see these plugins but cannot deactivate them.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.