You have map_meta_cap as true, and yet you are defining the capabilities using ‘capabilities’ yourself, and with backwards syntax.
When the capabilities are mapped, the verb goes at the beginning and the noun at the end, so the ‘edit_post’ capability would be ‘edit_openproject’.
Related Posts:
- Allow member to have access to custom post type only. Permission to only edit their own posts
- 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
- Custom user role cannot see or modify featured image
- 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
- Assign a Custom Role to a Custom Post?
- Restrict custom post type view by user role
- Creating custom user roles
- 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?
- Associating an “author” with a custom taxonomy
- Create user role restricted to specific CPT
- How to set individual capabilities on a taxonomy? Or how to re-register an existing taxonomy?
- 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 to restrict specific post types from being read or added by specific user roles (eg. author)?
- How can I get the last posts by user role?
- Custom user role not working as expected
- Which User Role for Custom Post Type Menu – wp_nav
- 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?
- Limit access to page depending on user level
- Role Capabilities: Add New Ones?
- Why does current_user_can(‘edit_posts’) return true, but current_user_can(‘edit_post’, $post->ID) returns false?
- Prevent authors from creating new posts of specific custom-post-type
- Custom post type capabilities require “create_posts” to access the edit posts list page
- Gutenberg Featured-Image-panel missing when user with custom role edits Custom Post Type
- 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]
- using add_role function to make some users to create a selected type post
- How to enable a custom post type to custom user role in WordPress
- 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
- Restrict user to only one custom post type
- only a certain role has access to a cpt
- current_user_can() return FALSE but debugging says TRUE
- 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?
- Display content based on a users login
- 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?
- WordPress multiple custom post types capability conflict in a single menu
- Only view/edit/delete CPT made by users with the same role
- How to set individual capability of post type in individual category
- 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?
- I want to create custom post in which user can share files like PDF & DOCx
- WooCommerce Customer Role Delete Custom Post Type
- Allow Contributor to edit but not update a published post
- Users create/join groups
- “Submit for review” for updates on existing posts
- Allow add new post access to custom post but not wp post for some role
- Deny user access to edit post while allow him to edit custom post type
- Create custom post with custom user rules
- How to show featured image block in custom post type for Author?
- WordPress custom post type capabilities issue
- Custom User role not working with custom post type
- Building Forums with Custom Post Types
- 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
- Enable comments for post when comments meta box removed
- Change user role when user’s first post gets published
- 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
- Added new role with custom capability. But cannot access the page
- Create relationship between custom post types and users
- Restrict admin pages for specific user role
- Conditional editing CPT – using editor’s role and author’s usermeta
- How to only display all posts to a custom User Role?
- Remove plugin settings from post creation page for a user role
- Allowing custom role user to edit post assigned to them but don’t let them create new custom type post
- I want to show post details based on roles user login
- Multiple useres editing specified content
- Instructor can view, edit, delete only theirs courses
- Front End users account with lots of user Roles (not Woocommerce)
- Capibilities of CPT WordPress
- Editor role isn’t seeing specific post type posts with only post_type parameter
- Control what custom posts a user can see
- Custom Post Type only display items created by user
- Prevent author role from editing others posts
- Default taxonomy ‘post_tag’ added to CPT managing by custom role : nothing in the metabox
- Custom taxonomy archive is visible to only subscibed users
- Custom role, capabilities, and post type: preview button wrecks things
- Custom role can’t create permalink
- Read-Only custom post type
- Custom Plugin w/ Custom Post Types – Custom Posts Are Showing at all Privilege Levels – Is this possible to adjust?
- Need some suggestions with Relationship fields and CPT/ACF
- Allowing a CPT post to be edited by a single user role
- How to fix post_tags not showing for a CPT in new post for a custom user role?