• Resolved muuvmuuv

    (@muuvmuuv)


    I would like to know if it is possible to restrict the editing and adding of taxonomies (I mean e.g. their tags inside a taxonomy) in a post?

    And if it is possible to show a list of all types in a taxonomy in a post instead of the input field to add/search for an existing one?

    • This topic was modified 6 years, 6 months ago by muuvmuuv.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    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.

    Thread Starter muuvmuuv

    (@muuvmuuv)

    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.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    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.

    Thread Starter muuvmuuv

    (@muuvmuuv)

    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?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    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().

    Thread Starter muuvmuuv

    (@muuvmuuv)

    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.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    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 🙂

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘How to restrict adding/editing of custom taxonomies to only Super-User?’ is closed to new replies.