register_post_type() accepts a parameter capabilities in its arguments. See get_post_type_capabilities() for possible values.
you can add these settings in your code while registering the custom post type
'capabilities' => array(
'edit_post' => 'update_core',
'read_post' => 'update_core',
'delete_post' => 'update_core',
'edit_posts' => 'update_core',
'edit_others_posts' => 'update_core',
'delete_posts' => 'update_core',
'publish_posts' => 'update_core',
'read_private_posts' => 'update_core'
),
Related Posts:
- Allow member to have access to custom post type only. Permission to only edit their own posts
- How to assign specific users the capability to edit specific pages / posts / custom post types
- Custom post type capabilities require “create_posts” to access the edit posts list page
- Limit users by custom taxonomy and user roles
- How to restrict CPT post’s fronted view only for specific user roles?
- Create custom post with custom user rules
- Building Forums with Custom Post Types
- Remove plugin settings from post creation page for a user role
- How can I remove “Add new” button on custom post type
- With Rest V2 (WP4.7) how does one restrict certain RESTFUL verbs?
- Custom post type role permissions won’t let me read
- Restrict Contributors to view only their own custom post types?
- Custom user role cannot see or modify featured image
- Allow user to Edit Posts but not Add New?
- Restrict custom post type view by user role
- Confusion with adding meta capabilities to a role after registering a Custom Post Type with corresponding ‘capability_type’ parameter
- Associating an “author” with a custom taxonomy
- User roles – enable custom posts disable posts
- How to not allow custom roles to edit published custom post types?
- Remove Custom Post Type menu for non-administrator users.
- create a back-end wordpress content submission using custom post type
- 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?
- Adding capabilities to default roles
- grant a privilege for roles (for example editors) and higher
- Prevent author role from editing all posts in custom post type?
- Allow Users Access to Custom Post Type Only
- 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
- Role Capabilities: Add New Ones?
- Prevent authors from creating new posts of specific custom-post-type
- Add custom capabilities to existing custom post type
- allow edit of custom post type but not regular posts?
- using add_role function to make some users to create a selected type post
- Why is my Custom Post Type not showing up after adding capabilities?
- Cannot attach media when capabilities added to custom post type
- After adding add_role to functions.php and creating a user, can not login into admin
- only a certain role has access to a cpt
- Role capability delete multiple post type posts doesn’t work
- How to allow a custom user role to create, edit, delete a specific custom post type only?
- map_meta_cap woes
- Roles for Custom Post Types
- Role scoping for contributors down to the field level
- can’t see custom post content filtered under “mine” filter in admin panel
- Define new user capability for custom post types?
- Only view/edit/delete CPT made by users with the same role
- WordPress comments_open for specific user role or post type
- 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?
- Users create/join groups
- Edit the author of custom post type
- “Submit for review” for updates on existing posts
- Allow add new post access to custom post but not wp post for some role
- Allow user to only access custom post type
- Want to be able to sign up subscribers as authors
- disable quickedit for specific custom post type user role
- how to associate several authors to a custom post type
- Adding guestbook to my wordpress site
- 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
- Unable to edit categories in custom post type
- How to handle this specific case of custom post type?
- Restrict category access to specific users/groups. Author always has access
- Accessing a protected property of a post
- Prevent user from editing others posts
- Preventing role reading others posts
- Post/Custom Post Type URL Access
- Enable comments for post when comments meta box removed
- Roles and Capabilities in Custom Post Types
- How do I “trash” a custom post type post while logged in as Admin
- Change user role when user’s first post gets published
- 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
- While creating a post, can I restrict the authors in the dropdown list based on their user role?
- Clone wp-admin/users.php (Users Admin Page)
- Added new role with custom capability. But cannot access the page
- Conditional editing CPT – using editor’s role and author’s usermeta
- Allowing custom role user to edit post assigned to them but don’t let them create new custom type post
- Front-end submitted post is published with admin ID as author
- WooThemes – Vendors / Bookings – Allow Vendors to manage resources
- How to create new permission for custom post types for doing specific tasks
- 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
- Custom user roles
- Allow viewing the edit screen for a post type, but not make/save/publish/update changes
- Weird capabilities / roles behavior
- Add role privileges of the custom post type
- creating different edit screens for different roles
- CPT, Custom User Role and problem with user manager
- Custom post type media upload error with custom user role
- Display and Allow users to edit their own profiles
- Custom Post Type supports author
- Capability to read user’s own draft post of CPT
- Custom role, capabilities, and post type: preview button wrecks things
- Reservations as Post
- Custom post type & role issues
- empty dashboard for custom role
- Allowing logged in users to create custom posts
- WordPress Roles