Przenieś Post, aby zanurzyć php WordPress
$post = array( 'ID' => $post_id, 'post_status' => $status );
wp_update_post($post);
Thoughtful Termite
$post = array( 'ID' => $post_id, 'post_status' => $status );
wp_update_post($post);