Roles and capabilities editing is something that is known as “missing” from our plugin. By default, we have the posts inherit the “post” capability type but we don’t have fields for the fine tuning.
Part of me wants to get this fixed in a future version, part of me wants to leave it as is and just offer tutorials/extensions that would help those who for sure need it.
That said, are you doing any customizing of the roles and each one’s capabilities? Curious if one or multiple of them remove the ability to edit after publishing.
Any changes with this one Tommy?
Hi @michael!
I’m trying to use some WP Roles to allow just certain users to create/edit/delete some CPT.
I’m using your amazing plugin to create the CPT, but I see that no one of the plugins I’v tried can give access to the CPT. So I see your reply:
“Roles and capabilities editing is something that is known as “missing” from our plugin.”
“part of me wants to leave it as is and just offer tutorials/extensions that would help those who for sure need it.”
You have some tutorial/extension/hack to make this possible?
Thanks for your help and time!
Best we have since this last reply is going to be this hook: https://github.com/WebDevStudios/custom-post-type-ui/blob/1.5.0/custom-post-type-ui.php#L441-L451
Passes you the constructed $args
array that we’ll be passing into register_post_type, as well as the chosen post slug, and the pre-processed values from the option.
You’d be able to modify the $args
array however which way you want, including adding extra indexes/values related to register_post_type()
arguments. I’m not the best with knowledge about the details for roles and capabilities, but this would at least let you set those values yourself without messing around with the plugin’s code or options when I don’t have UI spots for them.