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().

Метод класса: ActionScheduler_IntervalSchedule{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

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

Код ActionScheduler_IntervalSchedule::__wakeup() WC 9.3.3

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