Move Post To Draft Php WordPress

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

Leave a Comment