Created
August 20, 2015 17:45
-
-
Save ajitbohra/3861bd35c01260e02474 to your computer and use it in GitHub Desktop.
Remove Theme Editor from Appreances
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
<?php | |
/* | |
* Remove theme editor from backend | |
*/ | |
function remove_editor_menu() { | |
remove_action('admin_menu', '_add_themes_utility_last', 101); | |
} | |
add_action('_admin_menu', 'remove_editor_menu', 1); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment