You can use the global variable $submenu
.
Example to list the child menu of parent post menu:-
function admin_init_callback() {
global $submenu;
$sumenu_list = $submenu['edit.php'];
var_dump($sumenu_list); //array of submenu
}
add_action('admin_init', 'admin_init_callback', 999);
Profi660 EDIT:
Not needed to be used with admin_init
hook.
I used this in my plugin page and worked very well.
Related Posts:
- Add separator to admin submenu
- how to only add a top-level admin menu without it creating a sub-level-menu
- Add Labels to Admin Menu ( How To )
- cannot get global $menu value in form request
- Display a portion/ branch of the menu tree using wp_nav_menu()
- Changing the Order of Admin Menu Sections?
- Adding an Arbitrary Link to the Admin Menu?
- Add custom menu item using wp_nav_menu_items filter
- how to create a menu with all sub categories?
- Display only page specific sub menu items using Custom Walker
- Renaming a WordPress Admin Menu
- Add a .last class to the last in each ul.sub-menu
- Multi Level Bootstrap Navigation Menu in WordPress
- Add class to top level menu item if it has multiple child levels
- How show sub menu only using wp_nav_menu()
- Show only 2nd level of navigation depending on active navigation
- Simple Navigation Walker – Wrapper-class around first sub-menu
- How to get a separate child menu?
- How do I fix this error: Warning: invalid argument supplied for foreach()?
- Exclude one item from wp_list_pages( $args );
- How to add menu to Dashboard that can be viewed by all users
- wp_nav_menu() loses ‘current-menu-*’ classes on single product page within category
- How to drag multiple menu items at once in WordPress?
- Customizing the a tag with Semantic UI
- Make Theme automatically choose default nav menu
- Move admin menu at the end
- Put a wp_nav_menu inside another one
- How to make pages metabox display all hierarchy in menu admin?
- Add items to a menu dynamically
- Generate a Menu that displays all child pages of top level parent
- Hide pages depending on role
- How to display custom post meta in the appearance->menus page
- How can I add a sub menu to an existing navigation menu in WordPress?
- Custom Nav Walker sub-menu HTML construct
- Check if wp_nav_menu items have submenus
- Add div to specific sub-menu
- Automatically Add New Tags to Sub-menu
- How can I get an array/list of all current WordPress Admin Menu items?
- Adding different classes to anchor in navigation menu
- Nav walker, bootstrap: Display 3rd level items under 2nd level
- how to automatically generate hierarchical menus from hierarchy of pages?
- Custom Walker for Walker_Nav_Menu
- Arrow down in menu not displaying
- Programmatically adding menu items function replicates in multiple menus
- Handling complex multi-level architecture / menu for large site
- Sub-Pages only of menu items in current branch using a custom menu
- Update Nav Menu Items Programmatically
- How to display dynamic content in start_lvl function
- Remove Metabox from Menus screen
- Sort wp_nav_menu() by menu order
- Custom Admin Menu Order
- wp_list_pages: only show subpages on the parent page?
- Menus like a CMS
- Disabling ‘posts’ in Appearance > Menus
- Hiding Admin Page While Keeping Menu Expanded
- How to have custom menu Item CSS Classes for wp_page_menu() or wp_list_pages()
- next_post_link() on custom menu structure
- WordPress sub-menu items suddenly not showing
- How to add a submenu toggle button inside all “li” elements that have a submenu?
- No “current-menu-ancestor” class added when browsing an archive page
- Main Menu and Sub Menu Items for Footer
- How to construct a custom html for submenus
- Check if menu id = $specific_id – then insert specific
- Does loading of sub pages in menu cause load to the server?
- Get admin menu link
- Show menu based on parent & ancestor
- How to include a third level with wp_get_nav_menu_items function
- Hook for number of items in Appearance > Menus > CustomPostType > View All [duplicate]
- wp_nav_menu() with multiple Class
- Filter for Admin Nav Menus Drop Down
- Schedule Page to Menu [duplicate]
- How do you manage large menu hierarchies in WP?
- Update body class based on menu
- SlideDeck 2, make back-end visible for admins only
- Limit the menu child levels under “admin > appearance > menus”
- add_submenu_page function to show videos table
- Trying to Create Menu in WordPress
- How do I add recent posts to the menu?
- How to add ID attribute to each submenu?
- Hierarchical menu nesting problem with jQuery targetting
- From a page, is it possible to find entry’s “menu_item_parent”?
- Automatically list top level menu item child pages
- Highlight current post ancestor parent menu items
- How to retrieve parent menu item name of current submenu item
- Check if menu_item has children or has parent
- Add code to WordPress menu items by class
- Ad custom admin page like WordPress customizer [closed]
- Admin menu structure
- Creating a menu containing categories and authors
- Change submenu markup
- getting the current sub item out of total sub items in a given dropdown (custom walker)
- Show WordPress Menu On External Site
- Appearance Menus Screen – menu item drop down menu not functioning
- Adding an admin menu page showing the link twice – how to solve this?
- How to customize submenus isn wordpress theme [closed]
- Switch from hover to click on Twenty Twelve Menu
- a better menu, menu options assistance for WP
- How to highlight 1st level menu item based on actual page
- Admin-ajax.php 500 error when Add to menu is clicked in admin
- Can I have a different menu for each parent page?