skip to Main Content

WordPress: add_submenu_page() creating error

When I try to create a main menu, with this line add_menu_page("page title","menu name",10,"test-slug"); Wordpress loads just fine and displays the new menu, but when I try to add a submenu, add_menu_page("page title","menu name",10,"test-slug"); add_submenu_page("test-slug","sub title","sub menu",10,"test-sub-slug"); only an empty…

VIEW QUESTION
Back To Top
Search