ActionScheduler_IntervalSchedule::calculate_next()
Calculate when this schedule should start after a given date & time using the number of seconds between recurrences.
Method of the class: ActionScheduler_IntervalSchedule{}
No Hooks.
Return
DateTime
.
Usage
// protected - for code of main (parent) or child class $result = $this->calculate_next( $after );
- $after(DateTime) (required)
- -
ActionScheduler_IntervalSchedule::calculate_next() ActionScheduler IntervalSchedule::calculate next code WC 8.7.0
protected function calculate_next( DateTime $after ) { $after->modify( '+' . (int) $this->get_recurrence() . ' seconds' ); return $after; }