Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Remove Notices from WordPress Admin Pages
<?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