Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Promote users capability #7680
    abmex
    Participant

    Oh never mind, I found that I need to update the ID of the user role in the code.
    Works now.
    Thanks again.

    in reply to: Promote users capability #7679
    abmex
    Participant

    Thanks for trying to help, but this didn’t work.

    This piece of code only removed the Capabilities field with the ‘edit capabilities” link, but the entire section “Additional capabilities” including the dropdown field “Other Roles” is still there.
    https://www.dropbox.com/s/4m3dxb1yikwwvq2/Screen%20Shot%202021-09-05%20at%207.15.25%20AM.png?dl=0

    I only want the “Manager” role I’ve created to be able to change the user role of other users (let’s say from Subscriber to Contributor), but restrict it to a maximum of manager. I don’t want an extra field/section to assign ADDITIONAL roles or capabilities.

    in reply to: Trying to understand the Admin Menu Access Module #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?

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