ActionScheduler_Schedule::next()publicWC 1.0

Get the date & time this schedule was created to run, or calculate when it should be run after a given date & time.

Method of the class: ActionScheduler_Schedule{}

No Hooks.

Return

DateTime|null.

Usage

$ActionScheduler_Schedule = new ActionScheduler_Schedule();
$ActionScheduler_Schedule->next( ?DateTime $after );
?DateTime $after **
-
Default: null

ActionScheduler_Schedule::next() code WC 9.8.2

public function next( ?DateTime $after = null );