ActionScheduler_SimpleSchedule::__wakeup()publicWC 1.0

Unserialize recurring schedules serialized/stored prior to AS 3.0.0

Prior to Action Scheduler 3.0.0, schedules used different property names to refer to equivalent data. For example, ActionScheduler_IntervalSchedule::start_timestamp was the same as ActionScheduler_SimpleSchedule::timestamp. Action Scheduler 3.0.0 aligned properties and property names for better inheritance. To maintain backward compatibility with schedules serialized and stored prior to 3.0, we need to correctly map the old property names with matching visibility.

Method of the class: ActionScheduler_SimpleSchedule{}

No Hooks.

Return

null. Nothing.

Usage

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

ActionScheduler_SimpleSchedule::__wakeup() code WC 7.3.0

public function __wakeup() {

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