add_menu_page() with different name for first submenu item
Question
The add_menu_page
documentation says to pass the menu title as the second parameter:
add_menu_page('Page Title', 'Menu Title', ...);
When adding more pages later via add_submenu_page
, the main page becomes the first entry in the submenu:
However, I want the first item in the list to have a different name (but still point to the same page), the way WordPress itself does it:
How could I accomplish that in my plugin?
0
add-menu-page, add-submenu-page, menus, plugin-development
11 years
2012-09-27T18:13:01-05:00
2012-09-27T18:13:01-05:00 0 Answers
92 views
0
Leave an answer