Note, this assumes :
[ A ] : You creates a custom post type for users that mirrors the user ( There is currently no way to create a taxonomy for a user )
[ B ] : Your main plugin page is located in the admin at "admin.php?action=my_plugins_action".
add_action('admin_menu', 'my_admin_menu'); function my_admin_menu() { add_menu_page('My Plugin Menu','My Plugin Menu', 'manage_options', 'admin.php?action=my_plugins_action'); add_submenu_page('admin.php?action=my_plugins_action', 'Pitch Statuses', 'Pitch Statuses', 'manage_options', 'edit-tags.php?taxonomy=pitch_status'); add_submenu_page('admin.php?action=my_plugins_action', 'User Types', 'User Types', 'manage_options', 'edit-tags.php?taxonomy=user_type'); add_submenu_page('admin.php?action=my_plugins_action', 'User Roles', 'User Roles', 'manage_options', 'edit-tags.php?taxonomy=user_role'); }
This work by maniac.vardhan is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
0 comments :: adding custom taxonomies as submenus to custom admin top-level menu
Post a Comment