If you want them in an unordered list:
echo "<ul>\r\n";
foreach ( $submenu as $group => $item ) {
foreach ( $submenu[$group] as $key => $value ) {
echo "<li>" . $submenu[$group][$key][0] . " > " . $submenu[$group][$key][2] . "</li>\r\n";
}
}
echo "</ul>";
This results in:
<ul>
<li>Home > index.php</li>
<li>Updates > update-core.php</li>
<li>Library > upload.php</li>
<li>Add New > media-new.php</li>
</ul>
Related Posts:
- Passing arguments to a admin menu page callback?
- How put the correct URL to sub-menu plugin?
- How to include PHP files in plugins the correct way
- How can you check if you are in a particular page in the WP Admin section? For example how can I check if I am in the Users > Your Profile page?
- Why does WordPress add 0 (zero) to an Ajax response?
- How to add sub-menu to a menu generated by wp_nav_menu by using plugin
- function deactivate_plugins does not exist
- What is an alternative method to the WordPress private _doing_it_wrong() function
- Admin settings update updating every time home page is hit?
- What’s the best method for emptying an option created with the Settings API?
- Remove a menu item created by a plugin
- Understanding WordPress functions’ naming conventions
- What is the recommended way to create plugin administration forms?
- Using OOP plugin’s methods throughout the website
- How to add a new plugin page under desired Options page?
- Is it possible to add an admin page using add_submenu_page() and pass a var in the query string?
- function triggered by “manage_users_custom_column” filter not working
- Overwriting Core WordPress Functions with Plugins
- How can I change the frequency of a scheduled event?
- WordPress plugin how to run function when button is clicked
- When is it appropriate to put functions on page template vs. functions.php?
- Shortcodes, output buffering, and WordPress functions
- How can i list current author’s categories?
- Determine which theme location a wp_get_nav_menu_items is for
- Naming Admin Menus and Submenus
- When to check if a function exists
- Current class on admin menu using add_submenu_page()
- Checking for existence of a page by title?
- Add Admin Menu Inside Construct or Init
- Dynamically Override Fancy Title
- Problems with removing admin bar
- Hook event for upload image in the menu
- Problem with `wp_mail()`
- Calling a function from functions.php in custom page/ blog post
- Menu Error in Admin Console with Custom Plugin: You do not have sufficient permissions to access this page
- Check if I am in the Admin Panel (wp-admin)?
- What is the Difference between directly call a function and call a function using add_action?
- Call to undefined function get_blog_option()
- add_menu_page() with function inside a class [duplicate]
- How to add Font Awesome 5 icons in WP Admin dashboard menu?
- How to put placeholder text in the main post input area?
- What is the difference between current_page_parent and current_page_ancestor?
- Plugin development: is adding empty index.php files necessary?
- Undefined function wp_set_password
- Unified Approach for Placing Option Pages
- Plugin with specific admin menu icon
- Does add_filter work outside functions.php
- What function to hook for changes made in status and visibility of a post
- How to restrict plugin’s sub-menu pages to admin/subscribers?
- how to use preg_replace for wordpress video?
- Plugin Uninstall and Deactivate via Options Menu
- OOP Plugin and Menu – Call to undefined function register_setting()
- How can I add a CSS rule to edit.php?
- wp_enqueue_script + wp_enqueue_style Since When
- Logout hyperlink within a sub-menu
- Widget update function not saving values
- add more custom post types and custom role to the code
- $content variable – Is this a reserved variable for a WordPress function? – php / wordpress
- How to use WP_Term with (menu) argument in the wp_nav_menu?
- WordPress after content Hook & external template part
- Enqueue scripts in footer
- override pluggable.php functions
- Retrieve contents/page names of various pages for use in a plugin
- Can wp_list_comments output into variable?
- is user logged in not working
- Can I change header.php of current theme through a plugin function?
- get_current_screen() return null
- Override class inside $atts shortcode_atts in WordPress
- creating custom function to log actions in plugin
- add_rewrite_rule works in themes function php but when moved into plugin it stops working
- Global State During an Admin Post
- Maximum lifetime for nonce
- Where can i find wordpress auto update code flows?
- Howto: Use Custom Post Types as Submenu Items in Admin
- Sub Menu content is being duplicated
- Adding option to Gallery shortcode
- correct way to call javascript into hook function
- How to change the hover content of a specific menu item on WordPress?
- how to search users by ajax live search
- Set different custom menu items for different user roles
- Show/Hide ‘add new user’ custom fields in wordpress admin panel by click another field
- Bootstrap doesn’t work on admin menu page-How to override wp-admin style?
- Remove unwanted elements for a wp_nav_menu
- is it recommended to use WP_List_Table?
- Plugin sub-menu pages recommended structure and links
- How do I update a field of a meta box?
- How to add user details to different tables immediately after user registration
- Creating Admin Plugin – Content of a page is displayed at global scope as well
- mysql_real_escape_string() vs. esc_sql() in WordPress
- Add a page in admin without adding menu item
- WordPress function get_the_terms() returns ‘Invalid taxonomy’ error
- Checking for existence of a page by title?
- how to get context information inside my funcion
- WordPress class, using add_action to call member function does not work
- How to modify files inside wp-includes directory in wordpress
- Fatal error: Call to a member function get_page_permastruct() on a non-object
- wp_get_post_terms Order by not working
- Function/Class to list categories with checkboxes
- wp_get_theme Warning: Illegal offset type
- Silently register plugin pages