Add user role to generated plugin
If you look at the documentation for add_menu_page(), you’ll see the third argument is: The capability required for this menu to be displayed to the user. In WordPress you don’t require specific roles for permissions, you require a capability, and roles are collections of capabilities. Your menu page requires manage_options, which is only held by … Read more