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 have a new post type called "story"

And a new role called 'Writer' (w/ a 'publish_story' capability)

I want it so that, a Writer when logged in can edit Profile and only edit a custom post type - "story"

However, by adding the 'publish_posts' capability, it allows Writer to also manage other custom post types including the main 'Posts' as well. I just want to restrict user of a certain role/capability to manage certain custom post type only.

This is part of a simple plugin I'm writing to distribute, so I don't want to integrate with other plugins to make it simple, nor tell my users to edit the function.php or users.php.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You can create a new role and add specific capabilities.

Or you can conditionally remove access to Edit Posts and any other admin menu items.

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.