draft post and publish post manage
Sure it is – you can use the wp_insert_post_data filter: function no_going_back_to_draft($slashed_data , $post_data) { if($slashed_data[‘post_status’] == ‘draft’) { // we’re only interested in posts being saved as “drafts” $user = wp_get_current_user(); if ( in_array( ‘no-going-back-to-draft-role’, (array) $user->roles ) ) { // we’re only interested in users with that special, restricted role $post = get_post($post_data[‘ID’]); … Read more