move post to draft php wordpress
snippet in php

move post to draft php wordpress

user3457

$post = array( 'ID' => $post_id, 'post_status' => $status );
wp_update_post($post);