Update (task)

This commit is contained in:
2023-11-20 01:34:16 +08:00
parent 0e4d560c40
commit 9278df4365

View File

@@ -68,8 +68,6 @@ public static function handle($post_id, $post_status = 'publish')
$post->published_at = $new_time;
}
$post->published_at->subDays(1);
$post->status = $post_status; // Assuming you want to update the status to future
$post->save();
}