Moving Taxonomy UI to another main menu
-
I have created a few custom taxonomies for the post post_type for my recipe plugin. I set show_ui to false to remove it as a submenu item under Posts. Then I added it as a submenu page for my Recipe plugin options page with this code:
add_submenu_page( 'recipe_box_options', 'Ingredients', 'Ingredients', 'edit_others_posts', 'edit-tags.php?taxonomy=ingredient');
This works great and links correctly. My only issue is that it adds the
wp-has-current-submenu
class to the Posts top level menu, instead of the Recipe Box Options top level menu.Here’s a screenshot for clarification: https://screencast.com/t/XBmpgouUeOW
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Moving Taxonomy UI to another main menu’ is closed to new replies.