Created
July 28, 2014 15:56
-
-
Save joshgreen/0e7824a33a7893e03fa7 to your computer and use it in GitHub Desktop.
hide theme editor from WordPress dashboard
This file contains hidden or 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
//hide theme editor from WordPress dashboard | |
function wpr_remove_editor_menu() { | |
remove_action('admin_menu', '_add_themes_utility_last', 101); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment