WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to remove or hide Categories / Tags submenu under Posts in the Admin Menu. I know this works with the themes submenus:

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

The same doesn't seem to work for posts unfortunately:

remove_submenu_page( 'edit.php', 'edit-tags.php' );

I'm using the admin_menu action: add_action( 'admin_menu', 'function_call' )

Do I need to add something else?

share|improve this question
Upvote this question, you heathens!!! – Spencer Williams Mar 11 at 22:55
up vote 3 down vote accepted
add_action('admin_menu', 'my_remove_sub_menus');

function my_remove_sub_menus() {
    remove_submenu_page('edit.php', 'edit-tags.php?taxonomy=category');
    remove_submenu_page('edit.php', 'edit-tags.php?taxonomy=post_tag');
share|improve this answer
I'm not seeing this hide the tag and category areas in the Quick Edit section, but I do so remove_meta_box working as described. – Spencer Williams Mar 14 at 16:10

You may also want to remove the meta boxes from the Post Creation page

function remove_my_post_metaboxes() {
  remove_meta_box( 'categorydiv','post','normal' ); // Categories Metabox
  remove_meta_box( 'tagsdiv-post_tag','post','normal' ); // Tags Metabox
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.