• Resolved benjaminniess

    (@benjaminniess)


    Hello,

    It seems that the taxonomy form doesn’t have a “capability type” option to have different capabilities between categories and custom taxonomies.

    Also, on the register_post_type and register_taxonomy functions, there’s an option to define capability type as an array to manage plural (example [category,categories] to avoid “categorys”) and a “capabilities” option to have a better granularity in capabilities.

    Do you think that you could have a look at theses extra options?

    Thank you very much.
    Ben

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Good day @benjaminniess

    I will always be the first to admit that capabilities options/settings are one of our bigger weaknesses at the moment. At the same time though, we’re on an odd line of user-friendly, “lower end” for lack of better word, post type creation vs advanced usage. While we definitely get users of all skill ranges, more often than not, I’ve found most haven’t found need to customize capabilities to get what they need done.

    That said, I used some company free time a couple months back to create the following plugin extension of CPTUI that utilizes its hooks and UI to add a capabilities section. I would absolutely love feedback/testing for it with real life use-cases, and if you’re willing, I’d appreciate it.

    https://github.com/tw2113/custom-post-type-ui-capabilities

    Thread Starter benjaminniess

    (@benjaminniess)

    Hi Michael,

    Thank you for your fast reply ?? Ok, I get it. I’ll try to use a hook or the addon you mentioned. I’ll tell you if I have feedback.

    Cheers
    Ben

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    The most important hooks would be in the custom-post-type-ui.php file, where we provide a filter right before registering the post types and taxonomies. The plugin I crafted up should be making use of those as well, and help you or others avoid having to dive into code at all.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Capabilities’ is closed to new replies.