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.
Returns
DateTime.
Usage
// protected - for code of main (parent) or child class $result = $this->calculate_next( $after );
- $after(DateTime) (required)
- Timestamp.
ActionScheduler_IntervalSchedule::calculate_next() ActionScheduler IntervalSchedule::calculate next code WC 10.6.2
protected function calculate_next( DateTime $after ) {
$after->modify( '+' . (int) $this->get_recurrence() . ' seconds' );
return $after;
}