Change WordPress user roles and capabilities Forums How to or FAQ Trying to understand the Admin Menu Access Module

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7672
    abmex
    Participant

    I’ve activated the Admin Menu Access Module in the settings of URE Pro.
    I understand that I can block access to admin area menu items, but I can’t hide the menu items that I don’t want to grant access to, right?

    Isn’t that a little counter productive? Wouldn’t it be much better to also make the menu items disappear? Otherwise it really might confuse the specific user.

    Or am I missing something?
    Just trying to understand it.

    #7674
    Vladimir
    Keymaster

    “Admin menu access” module shows menu items list according to the current permissions granted to the selected role. Generally if role does not have permissions to see menu item, there is no need to block it via extension like “Admin menu access”, as such menu should be not available for user.

    Some plugin defines its admin menu in more complex manner, checking user permissions directly, but using lower capabilities, like ‘read’ or ‘edit_posts’ in the menu definition code. If you meed with case, when “Admin menu” does not show menu item for a role, but user sees this menu, let me know, what menu item and to what plugin it belongs. I will investigate it.

    #7675
    abmex
    Participant

    OK, thanks.

    I have another question.

    I have 9 custom post types, let’s call them CPT1 to … CPT9.

    I would like to change the capabilities for user role Author for only one of the CPT.

    Let’s say I want to remove “Edit post” only for CPT4.
    Now whenever I remove the checkmark next to “Edit post” of CPT4 and click on “Update”, my changes apply to ALL POSTS.

    How can I specify that I only want to change the CPT4 capabilities?

    #7677
    Vladimir
    Keymaster

    Read this article.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.