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
- Remove a menu item created by a plugin
- Understanding WordPress functions’ naming conventions
- 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?
- How can I change the frequency of a scheduled event?
- When is it appropriate to put functions on page template vs. functions.php?
- 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
- Current class on admin menu using add_submenu_page()
- Checking for existence of a page by title?
- Problems with removing admin bar
- Hook event for upload image in the menu
- 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()
- How to add Font Awesome 5 icons in WP Admin dashboard menu?
- Undefined function wp_set_password
- Unified Approach for Placing Option Pages
- Does add_filter work outside functions.php
- What function to hook for changes made in status and visibility of a post
- 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?
- Logout hyperlink within a sub-menu
- add more custom post types and custom role to the code
- Enqueue scripts in footer
- 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?
- Override class inside $atts shortcode_atts in WordPress
- add_rewrite_rule works in themes function php but when moved into plugin it stops working
- Global State During an Admin Post
- Where can i find wordpress auto update code flows?
- Sub Menu content is being duplicated
- correct way to call javascript into hook function
- how to search users by ajax live search
- 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
- Checking for existence of a page by title?
- how to get context information inside my funcion
- 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
- Why wp_die() doesn’t work with wp_redirect but exit() works
- WordPress theme options Menu
- Alternative functions for mysql_free_result and mysql_ping in wordpress functions
- Apply styles to blockquote element with the WYSIWYG editor
- Unable to get a simple plugin admin page to work
- How to change WooCommerce loop product title HTML output in single product page and archive page
- How to output functions from plugin inside theme
- Overwriting a plugin function
- Writing editor content to a file
- Use options to control jQuery plugin
- Restrict certain actions to plugin-specific admin menu pages only
- Adding tables to dashboard pages programmatically?
- Modify code for functions.php with specific twitter user url and hashtags
- can’t access some WordPress function from my plugin
- Custom Settings Plugin Save foreach checkboxes
- Customise Grouped Product display in Woocommerce with custom column
- Can someone explain what’s the use of parse request function in WordPress?
- Add default value from selection
- function add custom fields to media gallery
- Override category archive page title (not the head title)
- Make visible page only in the trash
- Why would one specify multiple arguments when using get_previous_posts_link() which takes only one parameter?
- I cant add is_admin control to plugin
- Does hooking into a plugin action / filter override the plugin’s function for that hook?
- WordPress plugin how to run function when button is clicked
- Add function to Dokan ajax class
- Function not working on any file other than the main plugin file
- WordPress permalink setting
- How to add submenu to WordPress plugin in the same Directory of main Plugin?
- edit-tags.php in plugin admin menu hides when is the active page
- Dynamic banner for use on external sites
- Change Admin menu placement using hooks
- How can i call from custom fields to the category editor?
- Why does this fail: Disabling plugins enqueue_script() in functions.php
- Menu_slug used for creating options page
- get_term_by() returning null on plugin
- Show Admin Menu