Support » Plugin: Custom Post Type UI » How to let contributor user level edit custom posts from all?

  • Resolved Johan F00



    FIrst, thanks for an awesome plug in!

    I have a question: I am running a site with multiple users with different levels, I have made a custom post type called “race”. I would like to make Contributor level able to edit “races” that have been published from any other user, not only his own.

    Currently, only the Author can do this, while Contributor can only edit the “races” himself has published.

    I do have a user role / capabilities plugin (User Role Editor and Members) but I do not know how to set up the capabilities for a custom type post.

    Any help appreciated

    PS. As a second step, I would like for edits to have to be approved by an Author anytime they are made by a contributor. Currently, if a contributor edits his own “race”, the changes are published immediately. Approval is only needed for initial publication right now.

    thanks a lot in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Michael Beckwith


    This is definitely something that’s outside the scope of our plugin. is going to be a good reference point, and any of the listed ones that relate to “posts” will likely be what you need to keep in mind with custom post types. Hope that gives a bit of a better idea.

    Hi Michael,

    Thanks for the reading source; I was just wondering if the CPT UI plugin registers any specific capabilities itself, or if I have to somehow register on my own

    Plugin Author Michael Beckwith


    We try to keep it basic and simply get the post types and taxonomies registered. We don’t add any specific capabilities ourselves because we don’t know what the user would want, and we haven’t gone the route of trying to add UI for the topic either. I think it’s better to let other plugins handle that type of thing personally.

    I see, just one thing then (if you got 5 mins):

    I think this entry is related to my problem (the last bit of code down the page) but I do not know how to adapt it in the case that the post type already exists, and in which files the code should be inserted to.

    Basically, if I try to manually register again for the same post name that I already have made (with your plug in), am I running a risk of breaking things?

    Plugin Author Michael Beckwith


    You can use the “Get code” link in the CPT list page to get the code that we’re using to register the post type.

    You can then put that in your functions.php file and edit as you need, after deleting the post type that CPTUI registers for you. MAKE SURE you get the code before you do any deleting.

    Do note that it won’t delete the posts in the database, it just would no longer register the post type.

    As an aside if you are hesitant to delete, I am not sure which order both instances would be run in, but I wonder if the functions.php one would be run later and override the one done by our plugin. Worth checking on if you’re curious/adventurous.

    thanks a lot, I got it to work 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to let contributor user level edit custom posts from all?’ is closed to new replies.