ActionScheduler_CronSchedule::calculate_next()protectedWC 1.0

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() WC 8.7.0

protected function calculate_next( DateTime $after ) {
	return $this->recurrence->getNextRunDate( $after, 0, false );
}