ActionScheduler_CronSchedule::__wakeup() public WC 1.0
Unserialize cron 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_CronSchedule{}
No Hooks.
Return
Null. Nothing.
Usage
$ActionScheduler_CronSchedule = new ActionScheduler_CronSchedule(); $ActionScheduler_CronSchedule->__wakeup();
Code of ActionScheduler_CronSchedule::__wakeup() ActionScheduler CronSchedule:: wakeup WC 5.0.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->cron ) ) {
$this->recurrence = $this->cron;
unset( $this->cron );
}
parent::__wakeup();
}