How to restrict plugin's sub-menu pages to admin/subscribers?
-
30-10-2019 - |
Question
I am working on a plugin with 6 submenu pages. I want 5 of them to be accessible by Administrators only and 1 of them to be accessible by Subscribers only.
Both user roles will have different features available on their respective pages.
Is it possible to do that? If yes, how? If no, what are the alternatives?
Thanks for your time!
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange