i-recommend-this
i-recommend-this copied to clipboard
Make options page only accessible to users with correct permission
https://developer.wordpress.org/plugins/security/checking-user-capabilities/
I tested this with an editor-level user and it's working as expected. When you create the options page and its menu item with add_options_page, the capability you set as the third parameter controls both the menu item display and page access. You have it set to manage_options, so by default only admins will see and be able to access it.
If you have a need to, you can also use this filter after the fact.
This has already been fixed so closing the ticket.