• Resolved tommyleyland

    (@tommyleyland)


    Hi there,
    I’ve created a custom post type via your plugin which works great.

    The only problem is that I have users under various roles and they can see the custom post type in the control panel, they can add a post but they can’t edit the post type once it’s published.

    Is there anything you can help with?

    https://wordpress.org/plugins/custom-post-type-ui/

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

    (@tw2113)

    The BenchPresser

    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.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    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!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    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.

    Thanks @tw2113 !

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Allow any role to add/edit custom post types’ is closed to new replies.