Issue with plugin sub menu and pages
Your code has a syntax error, extra close-curly in new_menu(). Your test_sub_menu() function has all the vars that are used in new_menu() – but they’re not global or called to from new_menu(), so they do nothing and the functions do nothing but return undefined errors. $parent_slug = ‘new-menu’; should be instead, for a subpage, the … Read more