add_menu_page() with different name for first submenu item
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?
Topic add-menu-page add-submenu-page plugin-development menus Wordpress
Category Web