You should map CPT capabilities with the capability_type
This way can WP understand what you want to do.
Try edit_$cap_type
(where $cap_type = alert)
Related Posts:
- How to fix the Post Preview Button (CPT & map_meta_cap)
- 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
- Change capability type of post type registered by plugin
- 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?
- REST API: How can I restrict a custom post type to only be accessible by authenticated users?
- Customize users’ capabilities to change a custom post’s post status
- How to add button to post page WordPress 5.x
- Create user role restricted to specific CPT
- How to set individual capabilities on a taxonomy? Or how to re-register an existing taxonomy?
- Custom Post Types – Capability Type
- Custom Post Type Capabilities — Enable Edit, Disable Create and Delete
- Add Capabilities to Custom Post Type after it has been created [duplicate]
- When you create a custom post type, does that also create capabilities for editing/deleting that post type automatically?
- Using Custom Meta Capabilities on Custom Post Type
- How to restrict specific post types from being read or added by specific user roles (eg. author)?
- WordPress allow access only one custom post type “xyz” to custom user role but need to hide all admin panels
- WordPress capability_type arguments
- Custom role capabilities to administrator not taking effect (no plugin)
- Editor access to menu: custom post type missing
- 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?
- WordPress Rest API only returns content when posttype has editor capability
- 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
- Notice: Undefined property: stdClass::$delete_posts with custom post type
- Custom Role for CPT Only
- 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?
- Custom Post Type Tag Capabilities Not Working
- WordPress theme custom capabilities not works
- How to restrict CPT post’s fronted view only for specific user roles?
- current_user_can() return FALSE but debugging says TRUE
- Custom Post Type Capabilities
- map_meta_cap woes
- Roles for Custom Post Types
- can’t see custom post content filtered under “mine” filter in admin panel
- Custom post types as sub menu pages and role capabilities issue
- Visual editor issue by having multiple tiny mce editors in a CPT
- Adding user capabilities for a custom taxonomy of a custom post type for a custom user
- How to set individual capability of post type in individual category
- Giving permission to anyone (non-users as well) with a password to edit a post, possible?
- read_post meta capability for anonymous users
- WooCommerce Customer Role Delete Custom Post Type
- delete_published_posts does not work
- Permit users with author role to edit a custom post type
- Disable user from updating certain posts
- “Submit for review” for updates on existing posts
- Access to CPT but not to ‘post’ post type
- How to restrict author to only access one custom post type ?
- Allow user to only access custom post type
- Custom post type submenu capabilities – custom plugin
- P̶l̶a̶c̶e̶h̶o̶l̶d̶e̶r̶ *Default* content in Custom Post Type TinyMCE editor
- re-register custom post type with custom capabilities
- Organize WordPress site, so it can maintain with huge database
- Target post type edit page to change view post button, how do I?
- Show all tags on custom post type
- WordPress custom post type capabilities issue
- Editor / Add Media: Is it possible to only allow galleries?
- Conflict between Capabilities and Menu Visibility with Custom Post Types
- wysiwyg editor don´t export paragraph
- 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
- How to handle this specific case of custom post type?
- Custom Post Type – after disable ‘Add New’, I can’t edit and delete post
- Wp custom post custom capability not working together
- Custom capabilities not reflecting on admin panel
- Admin: Get all user for Custom Role
- Custom Post Type not working with Capabilities
- Roles and Capabilities in Custom Post Types
- 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
- wp_editor in custom post type is not saving formatted text like bold, italic etc
- Custom Post Type Capabilities Singular/Plural
- Multiple useres editing specified content
- WooThemes – Vendors / Bookings – Allow Vendors to manage resources
- Capibilities of CPT WordPress
- Editor role isn’t seeing specific post type posts with only post_type parameter
- Remove Custom Capability
- How to hide editor, but keep media library access
- Prevent author role from editing others posts
- creating different edit screens for different roles
- What would prevent a custom role from viewing posts (both standard and custom)?
- 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
- Show posts of parent in edit.php
- Read-Only custom post type
- Adding custom shortcode to page leads to page without styling
- Understanding capabilities parameter in register_post_type()