Admin_url > You do not have sufficient permissions to access this page.
-
I have a basic problem making my plugin. I added a menu item ‘my plugin’ and clicking it opens the page ‘myplugin-index.php. In this page I want to link to another page in the plugin directory ‘members.php’. I use the following URL:
<a href="<?php echo admin_url( 'admin.php?page=bta/members.php' ); ?>">List all members</a>
clicking results in the page:
https://localhost:8888/wordpress/wp-admin/admin.php?page=bta/members.php
and the screen gives me:
You do not have sufficient permissions to access this page.
If I add ‘members’ as a submenu it will actually work (but I don t want to have a submenu). Can somebody explain this to me?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Admin_url > You do not have sufficient permissions to access this page.’ is closed to new replies.