Add a new capability for Download Manager

in Download Manager Free

Viewing 9 posts - 1 through 9 (of 9 total)
Mar 26, 2015 at 11:13 am
#27486
Member
hope82
OP

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

Mar 30, 2015 at 5:07 am
#27581
Member
Tauhid

may you please tell me again what you actually trying to achieve.

Mar 30, 2015 at 10:04 am
#27591
Member
hope82
OP

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

Mar 31, 2015 at 4:43 am
#27613
Member
Tauhid

in that case, you need to copy all caps from editor or upper caps roles to your custom role.

Mar 31, 2015 at 7:06 am
#27632
Member
hope82
OP

Would you please clarify more. What do you mean in copying all caps to my custom role?
Thanks for your reply
Hope

Apr 6, 2015 at 10:23 am
#27775
Keymaster
Shahjada
Staff

You can do that using this plugin https://wordpress.org/plugins/advanced-access-manager/

Apr 7, 2015 at 10:57 am
#27833
Member
hope82
OP

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

Apr 7, 2015 at 11:02 am
#27836
Keymaster
Shahjada
Staff

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.

Apr 8, 2015 at 9:10 am
#27868
Member
hope82
OP

Apparently the “Advanced Access Manager” plugin has more features than the “Members” plugin… Thanks.

Hope

Viewing 9 posts - 1 through 9 (of 9 total)

The topic "Add a new capability for Download Manager" is closed to new replies.