Created
May 18, 2023 17:32
-
-
Save broskees/d559bd120d176e423576bbeba0ee6cc1 to your computer and use it in GitHub Desktop.
Hide Must Use Plugins WordPress
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
<?php | |
add_filter( 'show_advanced_plugins', function ($default, $type) { | |
return $type == 'mustuse' ? false : $default; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment