WordPress at Your Fingertips
function is not described

ActionScheduler_IntervalSchedule::__wakeup() public WC 1.0

Unserialize interval schedules serialized/stored prior to AS 3.0.0

For more background, @see ActionScheduler_Abstract_RecurringSchedule::__wakeup().

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

No Hooks.

Return

null. Nothing.

Usage

$ActionScheduler_IntervalSchedule = new ActionScheduler_IntervalSchedule();
$ActionScheduler_IntervalSchedule->__wakeup();

Code of ActionScheduler_IntervalSchedule::__wakeup() WC 6.1.1

public function __wakeup() {
	if ( is_null( $this->scheduled_timestamp ) && ! is_null( $this->start_timestamp ) ) {
		$this->scheduled_timestamp = $this->start_timestamp;
		unset( $this->start_timestamp );
	}

	if ( is_null( $this->recurrence ) && ! is_null( $this->interval_in_seconds ) ) {
		$this->recurrence = $this->interval_in_seconds;
		unset( $this->interval_in_seconds );
	}
	parent::__wakeup();
}