I don’t have this plugin on hands to investigate it.
Many plugins use WordPress built-in capabilities, like ‘manage_options’ or ‘edit_posts’. You may search via plugin file to check what capability protects its admin menu, e.g.
grep -rn ‘add_menu’
Pay attention on the 3rd parameter value in the add_menu_page() function call.
I got a reply from the plugin creator “PageLayer” and hope you can help me understand where to add this information into your settings for custom permissions
—————–
If you want to grant a certain role access to the pagelayer editor, you must grant the role the permissions listed below.
(activate_plugins, delete_others_posts, delete_posts, delete_private_posts, delete_published_posts, edit_others_posts, edit_posts, edit_private_posts, edit_published_posts, manage_categories, moderate_comments, publish_posts, read_private_posts, create_posts.)
———–
Your plugin by default has all those listed but “activate_plugins” so im wondering if that is why its missing from displaying on the left side of the admin bar for the user.
Thank you for your continued help and support
‘activate_plugins’ capability created by WordPress on installation. URE lists it at the ‘All->Core->Plugins’ group.
Thank you for that info.
That does work in a pinch and does grant access for the user to the plugin they require but as a down side it also grants users access to the core WP “Plugins” page. This means the user now has access to deactivate and activate plugins. I would like to restrict the users access to these actions.
Is there any way of doing that?
You may look at the plugins which allow to restrict/modify WordPress admin menu. For example User Role Editor Pro “Admin menu blocking” add-on, or “Admin menu editor” plugin from other author.
I would be happy to upgrade your plugin to pro if that would allow me to accomplish the goal of restricting that part of core wp to the users while still allowing them to see and use the plugin they need.