1

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

2
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' );

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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