- This topic has 8 replies, 3 voices, and was last updated 10 years, 11 months ago by
hope82.
Hi Tauhidul Alam,
I’m using the “Members” plugin for users’ roles and I want to add a new capability for the “Download Manager” plugin, I modified the “manage_options” capability name as you told me previously in the download-manager.php file to “download_manager_capability” then I added the new name as a capability using the “Members” plugin but the “Download” menu in the admin dashboard appears anyway even if the “download_manager_capability” is unchecked.
If you need any details, please tell me..
Thanks a lot
Hope
may you please tell me again what you actually trying to achieve.
I want to define a capability for “Download Manager” to be able to add it or remove it from a certain role.
For example, I don’t want the “Author” role to be able to use the “Download Manager” from dashboard. I don’t want the “Download Manager” menu to appear at all in the administration dashboard for Authors. To achieve this, I need to add a special capability for the Download Manager plugin (by modifying the name in the download-manager.php file as you suggested previously and using the new name when defining roles).
I did this but still the “Download Manager” menu appears for authors in the admin dashboard in spite of not adding it to the Author role.
What could the problem be? Did I miss something? what is the right thing to do to achieve this?
Thanks a lot for your support
Hope
in that case, you need to copy all caps from editor or upper caps roles to your custom role.
Would you please clarify more. What do you mean in copying all caps to my custom role?
Thanks for your reply
Hope
You can do that using this plugin https://wordpress.org/plugins/advanced-access-manager/
I already have the “Members” plugin which resembles the “advance access manager” plugin in its functionality but this is not the issue! I need to know how to define a specific capability to the download manager plugin to be able to add it or remove it from a specific role.
Thanks
Download Manager using custom post type and custom post types accessible from any user role with “edit_posts” can’t, so you need to add or removed that cap from any role to allow or deny access, but that also will be applicable for other post types too. The plugin is mentioned in previous post has options to activate/deactivate specific post types from any user role.
The topic "Add a new capability for Download Manager" is closed to new replies.