Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
This little snippet remove the annoying warning message in the theme editor section
//Remove unwanted notices in the admin area
add_action('admin_head', 'remove_admin_warning');
function remove_admin_warning() {
echo '<style>
.theme-editor-php #message {display:none;}
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.