add_menu_page() with different name for first submenu item
-
03-11-2019 - |
题
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?
没有正确的解决方案