You should use different roles for this groups of users, like CPT-Editor or CPT-Reader. It is much easier to check the role and his capabilities to change on posts. To change this capabilities in the roles use a plugin, like Members, or custom code. The capability for edit, read cpt is different, in dependence of your plugin, that add this CPT.
This question is really helpful in this context, via plugin and custom code is a answer deposited.
Related Posts:
- How to restrict specific post types from being read or added by specific user roles (eg. author)?
- Roles for Custom Post Types
- Possible to hide Custom Post Type UI/Menu from specific User Roles?
- Custom post type role permissions won’t let me read
- Allowing custom role access to custom post type in back end
- How to assign specific users the capability to edit specific pages / posts / custom post types
- Allow user to Edit Posts but not Add New?
- Defining capabilities for custom post type
- Confusion with adding meta capabilities to a role after registering a Custom Post Type with corresponding ‘capability_type’ parameter
- Can I make user role that can only access a certian content type?
- Create user role restricted to specific CPT
- How to set individual capabilities on a taxonomy? Or how to re-register an existing taxonomy?
- User roles – enable custom posts disable posts
- Add Capabilities to Custom Post Type after it has been created [duplicate]
- How to not allow custom roles to edit published custom post types?
- How can I get the last posts by user role?
- How do I code access to the built-in UI of a CPT when it’s placed as submenu of another CPT that is protected by role?
- WordPress allow access only one custom post type “xyz” to custom user role but need to hide all admin panels
- Prevent author role from editing all posts in custom post type?
- How to allow “Add New” capability of CPT when links to its UI are placed as a submenu?
- Custom Role can’t trash Custom Post Type
- Limit access to page depending on user level
- Role Capabilities: Add New Ones?
- Custom post type capabilities require “create_posts” to access the edit posts list page
- Add custom capabilities to existing custom post type
- allow edit of custom post type but not regular posts?
- Allow Administrator role access to custom capabilities [duplicate]
- Why is my Custom Post Type not showing up after adding capabilities?
- Cannot attach media when capabilities added to custom post type
- How to restrict CPT post’s fronted view only for specific user roles?
- current_user_can() return FALSE but debugging says TRUE
- Role capability delete multiple post type posts doesn’t work
- map_meta_cap woes
- can’t see custom post content filtered under “mine” filter in admin panel
- Define new user capability for custom post types?
- Custom post types as sub menu pages and role capabilities issue
- Hiding posts by other users and non-logged in
- How to set individual capability of post type in individual category
- Restrict Access to Posts based on Custom User and Post Meta Data
- Giving permission to anyone (non-users as well) with a password to edit a post, possible?
- WooCommerce Customer Role Delete Custom Post Type
- Users create/join groups
- “Submit for review” for updates on existing posts
- Access to CPT but not to ‘post’ post type
- Allow add new post access to custom post but not wp post for some role
- How to restrict author to only access one custom post type ?
- Create custom post with custom user rules
- Allow user to only access custom post type
- WordPress custom post type capabilities issue
- Custom User role not working with custom post type
- how to associate several authors to a custom post type
- Role capabilities issue
- WordPress: Custom User Role cannot access Custom Post Type | “Sorry, you are not allowed to access this page”
- Select other roles as custom post authors
- Preventing role reading others posts
- Roles and Capabilities in Custom Post Types
- How to fix the Post Preview Button (CPT & map_meta_cap)
- Restrict Custom Post Type per role in Dashboard
- Restrict access to custom post type based on its taxonomy terms
- Clone wp-admin/users.php (Users Admin Page)
- Why “Mine” is the default view when adding ‘capability_type’ in register_post_type
- How to only display all posts to a custom User Role?
- Allowing custom role user to edit post assigned to them but don’t let them create new custom type post
- Multiple useres editing specified content
- WooThemes – Vendors / Bookings – Allow Vendors to manage resources
- Capibilities of CPT WordPress
- How can I remove “Add new” button on custom post type
- Capabilities and mapping required for a role to be able to edit other’s posts of a custom type, BUT only be able to edit their own blog posts
- Allow viewing the edit screen for a post type, but not make/save/publish/update changes
- Weird capabilities / roles behavior
- Control what custom posts a user can see
- Prevent author role from editing others posts
- creating different edit screens for different roles
- Display and Allow users to edit their own profiles
- Capability to read user’s own draft post of CPT
- Custom role, capabilities, and post type: preview button wrecks things
- Custom post type & role issues
- Read-Only custom post type
- Showing User’s Post Counts by Custom Post Type in the Admin’s User List?
- Restrict custom post type view by user role
- How to enable the theme editor cap for an editor role?
- Custom Post Types – Capability Type
- When you create a custom post type, does that also create capabilities for editing/deleting that post type automatically?
- Notice: Undefined property: stdClass::$delete_posts with custom post type
- only a certain role has access to a cpt
- Custom Post Type Tag Capabilities Not Working
- read_post meta capability for anonymous users
- Permit users with author role to edit a custom post type
- Want to be able to sign up subscribers as authors
- Conflict between Capabilities and Menu Visibility with Custom Post Types
- What’s the correct way to add capabilites to user roles?
- Custom capabilities not reflecting on admin panel
- Custom Post Type not working with Capabilities
- Show all post type posts in manage users posts column
- Front-end submitted post is published with admin ID as author
- Add WordPress users to a custom post type
- Associate custom categories to different user IDs
- What would prevent a custom role from viewing posts (both standard and custom)?
- Custom Post Type supports author
- Want to add post to user dashboard