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

ActionScheduler_ActionFactory::cron() public WC 1.0

Create the first instance of an action recurring on a Cron schedule.

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

Хуков нет.

Возвращает

Число. The ID of the stored action

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

$ActionScheduler_ActionFactory = new ActionScheduler_ActionFactory();
$ActionScheduler_ActionFactory->cron( $hook, $args, $base_timestamp, $schedule, $group );
$hook(строка) (обязательный)
The hook to trigger when this action runs
$args(массив)
Args to pass when the hook is triggered
$base_timestamp(число)
The first instance of the action will be scheduled to run at a time calculated after this timestamp matching the cron expression. This can be used to delay the first instance of the action.
$schedule(число)
A cron definition string
$group(строка)
A group to put the action in

Код ActionScheduler_ActionFactory::cron() WC 5.3.0

<?php
public function cron( $hook, $args = array(), $base_timestamp = null, $schedule = null, $group = '' ) {
	if ( empty($schedule) ) {
		return $this->single( $hook, $args, $base_timestamp, $group );
	}
	$date = as_get_datetime_object( $base_timestamp );
	$cron = CronExpression::factory( $schedule );
	$schedule = new ActionScheduler_CronSchedule( $date, $cron );
	$action = new ActionScheduler_Action( $hook, $args, $schedule, $group );
	return $this->store( $action );
}