Update (task)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user