WordPress at Your Fingertips
function is not described

ActionScheduler_IntervalSchedule::calculate_next() protected WC 1.0

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

{} It's a method of the class: ActionScheduler_IntervalSchedule{}

No Hooks.




// protected - for code of main (parent) or child class
$result = $this->calculate_next( $after );
$after(DateTime) (required)

Code of ActionScheduler_IntervalSchedule::calculate_next() WC 6.1.0

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