ActionScheduler_IntervalSchedule::calculate_next()
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() ActionScheduler IntervalSchedule::calculate next WC 8.7.0
protected function calculate_next( DateTime $after ) { $after->modify( '+' . (int) $this->get_recurrence() . ' seconds' ); return $after; }