Created
February 3, 2018 21:25
-
-
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
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
//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