• I want to set these restrictions for the Contributor user role.

    1) Contributors must not see Posts in the administration (default WP format for articles – post_type=post). Is this even possible? If not, it’s okay. I’ll hide the menu item and set a redirect for non-admins for the respective URLs.

    2)
    A) Contributors must be able to create new posts for Accommodation (custom post type – post_type=accommodation) and upload images to them. They must not be able to publish them, they will only submit them for review.
    B) Once approved, they must remain the author of the post.
    C) Once the post has been published by an administrator, the Contributor must see their post in the administration but must not be able to edit or delete it. They must not see other people’s posts in the administration, only their own. I’m now solving it with this snippet https://www.isitwp.com/restricting-authors-to-view-only-posts-they-created/ – I don’t know if this can also be done with your plugin. Then, of course, they must be able to see others’ posts on the front end.
    D) Contributors should only be allowed to see their own media but not be able to edit or delete them once the post is published.

    Is this possible with your plugin? If so, please help me by describing the steps to achieve this. Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    1. In order user doesn’t see Posts, revoke all ‘_posts’ capabilities from him, especially ‘edit_posts’.
    2. If custom post type accommodation is registered with own capability type, like ‘accommodation’, not the ‘post’ default one, then just grant to user ‘edit_accomodations’ and other capabilities, as WordPress does for built-in ‘contributor’ role from the very begin.
    3. If CPT accommodation uses ‘post’ capability type, you may use User Role Editor Pro feature, which allows to redefine capability type for all custom post types, which use the ‘post’ one. Then go to #2.
    4. URE Pro includes “edit restrictions” add-on, which has “Own data only” option, which works for for CPTs and for Media Library too.
Viewing 1 replies (of 1 total)
  • The topic ‘How to set up the following?’ is closed to new replies.