I created a custom role called Marketing Team
. I would like to give users with this role access to one specific plugin called XYZ Plugin
(I want this role to see XYZ Plugin from the sidebar menu, and be able to use it). If I add a capability called manage_options
to this role, it will have access to all plugins, and I don't want that.
Adding a custom capability (e.g. access_xyz_plugin
) and assigning this capability to a role so that role will have access to XYZ Plugin
-- will this work?
I've done extensive research on Google, but none of the solutions seem to work, or none of them is similar to what exactly I want to achieve.
I believe my issue is similar to this: Allow user role to access a specific plugin WORDPRESS
But none of answers provided correctly addressed the question.