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:

enter image description here


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:

enter image description here


How could I accomplish that in my plugin?

0
, , , MegaHit 11 years 2012-09-27T18:13:01-05:00 0 Answers 92 views 0

Leave an answer

Browse
Browse