Skip to content

Instantly share code, notes, and snippets.

@joshgreen
Created July 28, 2014 15:56
Show Gist options
  • Save joshgreen/0e7824a33a7893e03fa7 to your computer and use it in GitHub Desktop.
Save joshgreen/0e7824a33a7893e03fa7 to your computer and use it in GitHub Desktop.
hide theme editor from WordPress dashboard
//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