ActionScheduler_IntervalSchedule::calculate_next()protectedWC 1.0

Calculate when this schedule should start after a given date & time using the number of seconds between recurrences.

Метод класса: ActionScheduler_IntervalSchedule{}

Хуков нет.

Возвращает

DateTime.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->calculate_next( $after );
$after(DateTime) (обязательный)
-

Код ActionScheduler_IntervalSchedule::calculate_next() WC 8.7.0

protected function calculate_next( DateTime $after ) {
	$after->modify( '+' . (int) $this->get_recurrence() . ' seconds' );
	return $after;
}