making an edited post for moderation (3 posts)

  1. Alvaro
    Posted 4 years ago #

    At present I have a site where moderation of new post is working fine.
    But I need to make a published post to wait for moderation if it is edited after publish once.

    I hope i have explained it clearly,
    when a contributor create a post ,then it need to be published by moderator to saw it on the site but onces a post is published then the contributor can edit the post and publish it.I dont want that.I want to make a post wait for review once it is edited no matter whether it is being published earlier

    Thank you in advance

  2. kkarpieszuk
    Posted 4 years ago #

    add action hack for action 'edit_post'


    add_action('edit_post', 'somefunc');

    function somefunc($post_ID) {
    if (!current_user_can('switch_themes')) {
    // set status of post with $post_id to 'draft'

  3. Alvaro
    Posted 4 years ago #

    Thanks kkarpieszuk,
    As i am new in coding wordpress so will try to do the coding and will update you with the result,

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.