Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

share|improve this question
add comment

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' );
share|improve this answer
    
Works good, thanks! –  Blackbird Jan 13 '12 at 22:58
add comment

Your Answer

 
discard

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.