• Resolved nanakiadim

    (@nanakiadim)


    Hello there,

    We are using YITH WooCommerce Multi Vendor / Marketplace, User Role Editor and CPT UI on our website.

    What we want to achive is to let new Vendors create new posts on custom posts type News and Jobs.

    We have tested this with Authors and it worked but when a user is at the same time registered as Vendor he gets this notification “You do not have permission to edit this jobs.”

    We have contacted the Yith support and they redirect us to your support. saying that the previllages on the capability Type (post) is not working and that this falls out of the support policy.

    We have also have the same privillages on the Vendors goup on the User Role editor but still not granding the provillages.

    Do you know by any chance anything regarding this matter? Can you please provide us more details on how the capability type on the CPT UI is working?

    Kind regards,
    Nana

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

    (@tw2113)

    The BenchPresser

    Can’t say I’ve ever attempted anything like this specifically, so I’m not going to have details on the nitty gritty of how to achieve this. Something obviously isn’t matching up, and I’m wondering if it’s maybe more related to User Role Editor, than necessarily the post type registration itself, but I’m willing to somehow be wrong there.

    What I can say is that i know we have a capability type field that we default to post and this is largely done for backwards compatibility because it was added in many years ago, but the capabilities portion of capabilities customization has never fully been added alongside this.

    That said, I know we have a WordPress filter to amend the arguments used for capabilities, the question would be more what, if anything, needs to be included there to make things work for your usecase. That part I don’t know.

    Thread Starter nanakiadim

    (@nanakiadim)

    Thank you Michael,

    I have contacted the YITH plugin authors and the informed me that changes must be done from the CPT UI side.

    What I have until now, is that I can click on create a new post, but when I save it I see the error. Also, there are no posts listed on Mine. I can see that there is 1 (the one I submitted) but I can not view or edit.

    Is there anything that we can do to acomplish that?

    Kind regards,
    Nana

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Honestly not sure what to suggest with this. I also don’t completely agree with YITH developers in that it’s necessarily a CPTUI issue unless you’ve made any changes around the capability type parameter away from post. A detail that we could verify just by looking at the settings of your CPTUI-registered post types. I suspect you’d have the exact same issue if you used the “Get Code” section of CPTUI to get the registration code to use, to register them without CPTUI. Our plugin is very behind the scenes and once configured, you just don’t need to think about much.

    We also still have the topic of User Role Editor usage which we haven’t really touched on too much and what changes have been made there. As an alternative route, I wonder if it’d be at all possible to automate giving vendors the “author” role as well as “vendor” which I assume is a custom role in this case.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Any news on this front @nanakiadim ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can not create new custom post type’ is closed to new replies.