Theme editor menu item refuses to go away

I’ve got an action set up on admin_menu to modify it as needed. I successfully removed the themes menu with the following:

remove_submenu_page('themes.php', 'themes.php');

Now I want to get rid of the useless yet dangerous theme editor.

Read More
remove_submenu_page('themes.php', 'theme-editor.php');

This refuses to work for whatever reason. I can remove any of the other appearance menu items but the theme editor refuses to listen to my demands.

That particular menu item is indeed added via add_submenu_page on line 163 of wp-admin/menu.php so I fail to see why I can’t get rid of it.

Is this a bug or am I missing something?

Related posts

Leave a Reply

2 comments

  1. In WP 3.1, you should be able to use the views_users filter to limit the views displayed on the users page. The views are the horizontally arranged links to filter by role.