Add sub-menu not working
-
I am trying to add a sub-menu to my plug-in’s ad-min menu item with the following code:
function AtasArtMainMenu() { add_menu_page('Atas Art Editor', 'Atas Art', 'manage_options', 'aaedit', 'AANLUpload', '', 65); add_submenu_page('aaedit', 'Atas Art Editor', 'Remove newsletters', 'manage options', 'aaremove','AANLRemove',99); } add_action('admin_menu','AtasArtMainMenu'); function AANLUpload() { ... } function AANLRemove() { echo 'Hello'; }
The menu item ‘Atas Art’ shows on the admin menu but the submenu is nowhere to be seen.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Add sub-menu not working’ is closed to new replies.