Create Menu Slug without add_submenu_page()
-
Maybe I misunderstood the correct use of the functions, I hope you can help me.
The fourth parameter of add_submenu_page() refers to its slug, which in fact is the GET’s param of page querystring, right?
add_submenu_page( 'parent-slug', 'Page Title', 'Overview', 0, 'this-menu', array( $obj, 'method' ) );
Now I want to create another slug without use this function, so I can accesswp-admin/admin.php?page=another-slug
Without receive a “permission denied” error. I already managed to access pages like that, from a undefined slug, but because it was not defined, WordPress doesn’t know it, and the error HTML is being merged to my HTML.
The topic ‘Create Menu Slug without add_submenu_page()’ is closed to new replies.