Skip to content

Instantly share code, notes, and snippets.

@BiancaNL
Created February 3, 2018 21:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BiancaNL/c611be65a550f87b01de4b694092be7f to your computer and use it in GitHub Desktop.
Save BiancaNL/c611be65a550f87b01de4b694092be7f to your computer and use it in GitHub Desktop.
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;}
</style>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment