I created a plugin which requires several screens. Not all of these screens are accessible, or should be accessible from the dropdown menus.
The URLs I'm trying to access look like this:
wp-admin/admin.php?page=MyPlugin/Dashboard.php
wp-admin/admin.php?page=MyPlugin/SubPageOne.php&id=123
wp-admin/admin.php?page=MyPlugin/SubPageTwo.php&id=456
MyPlugin/Dashboard.php has a link to it from a custom menu I've added. The two sub-pages do not.
My problem is this:
When I try to access the sub-pages I get this error:
You do not have sufficient permissions to access this page.
What do I need to do in order to allow access to the sub-pages?