Last active
October 2, 2015 12:59
-
-
Save vc27/a2c149095b5835c3052c to your computer and use it in GitHub Desktop.
for those projects that have a bazillion plugin notices taking up 2x pagefold
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
/** | |
* hide_all_notices | |
* @since 1.2 | |
**/ | |
add_action( 'admin_head', 'hide_all_notices' ); | |
function hide_all_notices() { | |
$user = wp_get_current_user(); | |
if ( $user->user_login == 'randyhicks' ) { // get rid of the damn things!!!! | |
echo "<style>.notice, .error, .update-nag { display:none; }</style>"; | |
} | |
} // end function hide_all_notices |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment