Add submenu into menu page based on first fourth parameter of add_menu_pagemenu's slug.
add_menu_page
function aa() { add_menu_page("halo", "tes aja", "edit_users", "kolak", "asa", "", 3); add_submenu_page("kolak", "lahhhhh", "loh heh", "edit_users", "waaaww", "asa", 1); } add_action('admin_menu', 'aa'); function asa(){ echo "Hello World"; }
Last updated 1 year ago