Create capability for CPTs
-
Great plugin!
I want to be able to restrict the permissions on certain roles to **create** new posts for CPTs. (i.e. just edit existing ones).
I prefer to manage my CPTs in the UI.
Please can the UI be expanded to allow the
capabilities
parameter to be passed toregister_post_type
, e.g.'capabilities' => array( 'create_posts' => false, // Removes support for the "Add New" function ( use 'do_not_allow' instead of false for multisite set ups ) ),
or
'capabilities' => array( 'create_posts' => "create_$cptname", // Map a meta capability for the creation permission, e.g. create_group ),
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Create capability for CPTs’ is closed to new replies.