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
/** | |
You may use current_user_can('administrator') instead of is_super_admin() for not MU sites | |
DO NOT use is_admin() since it doesn't check users role nor capability | |
Be aware this hides also notifications thant a content (page/post/...) was saved | |
*/ | |
function remove_admin_notices() { | |
if(!is_super_admin()){ | |
remove_all_actions( 'admin_notices' ); | |
echo "<style>.wp-admin .notice {display:none !important;}</style>"; |