ActionScheduler_CronSchedule::calculate_next()
Calculate when an instance of this schedule would start based on a given date & time using its the CronExpression.
Method of the class: ActionScheduler_CronSchedule{}
No Hooks.
Return
DateTime
.
Usage
// protected - for code of main (parent) or child class $result = $this->calculate_next( $after );
- $after(DateTime) (required)
- -
ActionScheduler_CronSchedule::calculate_next() ActionScheduler CronSchedule::calculate next code WC 8.7.0
protected function calculate_next( DateTime $after ) { return $this->recurrence->getNextRunDate( $after, 0, false ); }