I have a taxonomy link in my admin sidebar i'd like removed from view.

Only in the sidebar though, i will still be using the function in the post view, so if that creates problems a simple simple CSS trick will do. Just need it gone from the sidebar as it's unnecessary clutter.

The current link looks like:

http://domain.com/wp-admin/edit-tags.php?taxonomy=featured&post_type=movies

link|improve this question

feedback

1 Answer

up vote 2 down vote accepted
function remove_featured_tax_menu()
{
    remove_submenu_page(
        'edit.php?post_type=movies',
        'edit-tags.php?taxonomy=featured&post_type=movies'
    );
}
add_action( 'admin_menu', 'remove_featured_tax_menu' );
link|improve this answer
Works good, thanks! – Blackbird Jan 13 at 22:58
feedback

Your Answer

 
or
required, but never shown

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