Trouble with admin url's.
-
I’m having some trouble understanding how to get my admin url’s for my custom pages to display properly. I can successfully add my custom menu into the admin side menu, but the URL’s are acting funky.
function scholarship_admin_actions() { add_menu_page('Scholarship Plugin', 'Scholarship Plugin', 'edit_plugins', 'scholarship/scholarship_admin.php', '', plugins_url('scholarship/images/education.png'), 27); add_submenu_page('scholarship/scholarship_admin.php', 'Scholarship Plugin: Contact Requests.', 'Contact Requests', 'edit_plugins', 'scholarship/scholarship_admin.php?page=contact_requests', '' ); } add_action('admin_menu', 'scholarship_admin_actions');
the code displays this for a url when viewing my submenu
wp-admin/admin.php?page=scholarship/scholarship_admin.php?page=contact_requests
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Trouble with admin url's.’ is closed to new replies.