need role capability code for EDIT but not PUBLISH (6 posts)

  1. raskull
    Posted 4 years ago #

    I am familiar with the various role capabilities and can manipulate them for each role at will. However I do not see a capability or combination of capabilities that has this effect:

    Role can EDIT pages, but not PUBLISH those edits.

    I want edited content to be submitted for review to a higher role that would approve and publish. The edit/push-the-edit functionality seems to be wrapped up in one.

    Any ideas about how to achieve this functionality? If you know for a FACT that there is plugin that achieves this in particular, let me know (I haven't seen one). Otherwise I am looking for some code ideas.

    Something like update_posts as a capability, that when disabled would offer the Submit for Review button. As I write this, I start to see the complexity... I guess the edited version would appear in the text editor (and could be previewed). If the higher admin did not approve, I guess they would use Revisions to roll back in the text editor...?

    What do you think? Can it be done?

  2. raskull
    Posted 4 years ago #

    I have spent hours googling this and come up with nothing, except other (unanswered) queries just like mine. I guess this means it won't fly, but it would be cool if an expert could understand what I'm asking and tell me why it can't be done.

  3. Amy Hendrix (sabreuse)

    Posted 4 years ago #

    Contributors can edit (their own) posts, but not publish them. If what you need is for them to edit other users' posts (but still not be able publish), you'll need to customize their roles using something like Role Scoper.

  4. raskull
    Posted 4 years ago #

    By default, Contributors can only edit or delete their own posts while review is pending. After the higher role approves the post, the Contributor can no longer edit or delete the post.

    If I add_cap( 'edit_published_posts' ) then the Contributor can now edit the post, however it is no longer held for review.

  5. raskull
    Posted 4 years ago #

    I dare say I have found something that might work -- Revisionary:

    For others who might find this helpful, here is what I finally googled after I got out of the role/capability mindset:
    wordpress hold for review edits to published pages role
    but even that didn't give me direct hit, only a clue!

    Will report back after I try it.

  6. raskull
    Posted 4 years ago #

    Sigh. Might work for some, but it has it shortcomings. See my comment here:

Topic Closed

This topic has been closed to new replies.

About this Topic