Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

JustRunLah on "How to let a user level edit custom post type made by anybody?"

$
0
0

hello all,

I am running a WP site with multiple user levels. I have already created a custom post type called "race". I would like to allow the Contributor level able to edit "races" that have been published from any other user, not only by themselves.

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

The custom post type was made by "CPT UI" plugin (https://wordpress.org/plugins/custom-post-type-ui/) and I did not code it myself.

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

I think this entry is related to my problem http://www.wpmayor.com/roles-capabilities-wordpress/ (the last bit of code) 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.

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 all articles
Browse latest Browse all 8245

Trending Articles