• Resolved nick.elliott10

    (@nickelliott10)


    Within the back-end of the site, I’ve created a number of custom post types which are all working fine which logged in as ‘administrator’. I’ve created a new user role and assigned the user the relevant permissions, however, without the ‘manage-options’ capability added to the role, the user is unable to view/edit or create new custom posts.

    Is there an setting I’ve missed somewhere?

    The page I need help with: [log in to see the link]

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

    (@tw2113)

    The BenchPresser

    We admittedly don’t have 100% listing of all the arguments for post types, and that includes the “capabilities” field

    For example, we have the “capability type” spot in place that defaults to “post” and it’s largely left there for legacy reasons before I personally stepped in as primary developer.

    However, the capabilities array is still being left off https://developer.ww.wp.xz.cn/reference/functions/register_post_type/#capability_type

    That doesn’t mean we don’t help with adjusting any of the values for the arguments for the post types. We have this filter, linked to below, in place to help fill missing details when needed.

    https://github.com/WebDevStudios/custom-post-type-ui/blob/1.12.1/custom-post-type-ui.php#L538-L550

    The $args variable should match up just like the version you’d yourself pass in to register_post_type() and we provide other details to help with conditional amending.

    Hopefully this helps get things set up for the post type enough to meet your custom user role.

    Alternatively, in case you’ve edited the capability type value, I wonder if they could do all the parts they need if that got set back to post.

Viewing 1 replies (of 1 total)

The topic ‘Access Issue’ is closed to new replies.