WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта с помощью браузерных PUSH уведомлений
функция не описана

ActionScheduler_CronSchedule::__sleep() public WC 1.0

Serialize cron schedules with data required prior to AS 3.0.0

Prior to Action Scheduler 3.0.0, reccuring 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 guard against the possibility of infinite loops if downgrading to Action Scheduler < 3.0.0, we need to also store the data with the old property names so if it's unserialized in AS < 3.0, the schedule doesn't end up with a null recurrence.

{} Это метод класса: ActionScheduler_CronSchedule{}

Хуков нет.

Возвращает

Массив. Ничего.

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

$ActionScheduler_CronSchedule = new ActionScheduler_CronSchedule();
$ActionScheduler_CronSchedule->__sleep();

Код ActionScheduler_CronSchedule::__sleep() WC 5.2.2

<?php
public function __sleep() {

	$sleep_params = parent::__sleep();

	$this->start_timestamp = $this->scheduled_timestamp;
	$this->cron            = $this->recurrence;

	return array_merge( $sleep_params, array(
		'start_timestamp',
		'cron'
	) );
}