For the first part, I assume you still want them to be able to assign the terms, just not create new ones while in the post editor screen?
If you’re wanting the checkbox layout like you see with the standard “category” taxonomy, just set your custom taxonomy to be hierarchical.
For the first part; yes, exactly.
Okay but what if I don’t want it to be hierarchical? If they could not edit/add terms in the post editor then it would be fine for me.
Overall, you’d need to fiddle with permissions and see what can be achieved with their customizations, to get what you’re wanting for at least the first item, possibly the second as well.
The checkbox version and the text input are the two defaults available for a taxonomy, so if you’re wanting anything different, it’d be a custom solution. I am legitimately curious if more restrictive permissions would affect these two though, especially if there are capabilities around creation vs usage. However, I can’t say for certain at this point.
I also know that permissions are a weaker spot for CPTUI’s implementation, and we don’t have the best support there. However I know that we have enough in place to help with any tutorials/examples found elsewhere, so that one wouldn’t have to ditch CPTUI as a whole.
Okay, so I’ll copy the code now and add permissions (at least see what is possible with WP). Do you have any plans to add permissions to the plugin? As well as support the “User Role Editor”-Plugin?
I’ve done some extension work in the past, but nothing fully released thus far, that try to add UI to some of those missing arguments. Beyond that, I know we have WP filters on the arguments right before the registration of the post types and taxonomies that can be hooked into to provide any missing fields, while still allowing the use of CPTUI in general. Saves on having to export the “get code” to somewhere else. I can point those out if you’re really interested.
What sort of support are you referring to with User Role Editor? Both our plugin and theirs do different things and I’m not sure what sort of integration we could offer. Our primary focus is providing a UI to collect registration arguments for register_post_type() and register_taxonomy().
The hook sounds interesting but anyway I got it working without big changes. It seems that by default WP does not allow others than the admin to add/edit taxes in the post that are marked as hierarchical, so this is fine. Thanks anyway! I’ll keep the hooks in mind if my customer needs more control over them.
User role Editor just provides a UI to manage any user role in WP. I don’t know if it is required to do any work to get both plugins work together but just wanted to mention that this plugin is often used together with permission management in WP.
I most definitely believe it being often used in conjunction with one another. If there’s something about ours that prevents theirs from working in some way, by all means let us know so we can explore ideas on how to resolve that. However, I have a feeling that at least right now, they work in tandem well.
Thanks for the feedback 🙂