ActionScheduler_IntervalSchedule::__wakeup()publicWC 1.0

Unserialize interval schedules serialized/stored prior to AS 3.0.0

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

Method of the class: ActionScheduler_IntervalSchedule{}

No Hooks.

Return

null. Nothing (null).

Usage

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

ActionScheduler_IntervalSchedule::__wakeup() code WC 8.7.0

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();
}