Created
November 22, 2017 06:24
-
-
Save JRMorris77/351ea92c956a8e1cf6a8806725f80170 to your computer and use it in GitHub Desktop.
Remove Notices from WordPress Admin Pages
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 | |
// Removes Notices from WordPress Admin pages. | |
function remove_admin_notices() { | |
remove_all_actions( 'admin_notices' ); | |
echo "<style>.wp-admin .notice {display:none !important;}</style>"; | |
} | |
add_action( 'admin_head', 'remove_admin_notices' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment