Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am in a similar situation to this person, only I need a bit more hand-holding. I don't have a good understanding of php but can cut and paste code with the best of them.

I have Justin Tadlock's Members plugin, and have set up a custom post type and associated custom taxonomies in my functions.php file.

Here's what I'm trying to accomplish:

  • User registers and is set as Contributor by default.
  • User can now see only this custom post type and can make an entry to this post type, but not publish it.
  • User can only see and edit their own post(s).

If possible, I need specifics on what and where to add to my post type registration function. I understand it involves 'map_meta_cap' and 'capability_type' but I don't know how to write the code or where to put it in the function. Once the capabilities are established I can add them as custom capabilities in the Members plugin.

share|improve this question

2 Answers 2

I figured it out on my own -- the code snippet I needed to follow is here. Justin Tadlock is the man.

share|improve this answer

Also you can use Justin Tadlock's "Members" plugin for adding custom caps.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.