I was able to get a role to access certain Widget Blocks. Unfortunately, the plugin that I gave access to this role shares the same capability. So now I have two more plugins accessible by this role that share the same capability, but I don’t want this role to get access to these plugins.
So how do I exclude these other plugins that share the same capability and still give access to the role to only the Widget Blocks?
Plugin: Widget Blocks
Capability: edit_posts, create_posts (I selected the following: edit_posts, edit_others_posts—this had to be selected–,create_posts, edit_published_posts)
Posts edit: 8981, 8983
Other plugins that share the same Capabilities:
Plugin: AGP Icons
Capability: manage_options, edit_posts
Plugin: Meta Slider
Capability: I don’t know because I can’t see it listed in the Admin Menu. So obviously this must share a capability.
So how do I get rid of access to AGP Icons and Meta Slider for this role?
In general if plugins use the same capabilities you may block unneeded plugin menus via “Admin menu access” add-on you referenced at your post.
Some plugins changes capabilities, which they use for menu protection, dynamically:
use one for ‘administrator’ role and another one for other roles. Such cases require investigation as the admin menu access module shows menu items list using capabilities it got from menu for the ‘administrator’ role.