ActionScheduler_CronSchedule::calculate_next()
Calculate when an instance of this schedule would start based on a given date & time using its the CronExpression.
Метод класса: ActionScheduler_CronSchedule{}
Хуков нет.
Возвращает
DateTime
.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->calculate_next( $after );
- $after(DateTime) (обязательный)
- -
Код ActionScheduler_CronSchedule::calculate_next() ActionScheduler CronSchedule::calculate next WC 7.7.2
protected function calculate_next( DateTime $after ) { return $this->recurrence->getNextRunDate( $after, 0, false ); }