Assing group caps to custom user role

3 Replies ·

  1. Hi,

    I am looking the way for not to manage the capabilities of a particular group to a certain role.
    It’s possible?

    I have the the custom post type called “events”.
    I want the put some code that hide the group “events” and relative capabilitis to some rules from the edit permission screen.

    I also accept code side solutions if from the backend is not possible.

    Thank you so much

  2. Justin Tadlock

    I understand that you have a custom post type named “events”. I assume the code slug for it is events.

    What is a “group”? A group of what? A group of events?

    I don’t understand anything else about what you’re asking. If it helps, feel free to post screenshots to help describe what you want to do.

  3. Mario Ferrara

    for group I mean the caps group othat appear on the edit role screen. ( users.php?page=roles&action=edit&role=nameofmycustomrole).

    Screenshot here =>

    I am looking a solution to hide or disable tab “Eventi” and relative capabilitys from assign or denied action on a specific role.

    For example: the roles “superadmin” that edit all capabilities for “Eventi”, and the role “miniadmin” not edit them.

    Thank you

  4. Justin Tadlock

    This is the same question you asked 3 weeks ago, I believe:

    You can’t do this. There’s no way to deny that capability group. That’s simply because WordPress capabilities do not work like that. You either can edit roles or you cannot edit roles. There’s no in between.

    There’s no way to break that down to limiting whether a user can edit only certain capabilities of a role. This is not something Members could even give you control over.