Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Remove Notices from WordPress Admin Pages
// 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
You can’t perform that action at this time.