ActionScheduler_Abstract_Schedule::calculate_nextprotectedWC 1.0

Calculate when the next instance of this schedule would run based on a given date & time.

Method of the class: ActionScheduler_Abstract_Schedule{}

No Hooks.

Returns

DateTime.

Usage

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

ActionScheduler_Abstract_Schedule::calculate_next() code WC 9.9.5

abstract protected function calculate_next( DateTime $after );