wc_schedule_single_action()WC 1.0

Schedule an action to run one time

Хуков нет.

Возвращает

Строку. The job ID

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

wc_schedule_single_action( $timestamp, $hook, $args, $group );
$timestamp(int) (обязательный)
When the job will run
$hook(строка) (обязательный)
The hook to trigger
$args(массив)
Arguments to pass when the hook triggers
По умолчанию: array()
$group(строка)
The group to assign this job to
По умолчанию: ''

Код wc_schedule_single_action() WC 8.7.0

function wc_schedule_single_action( $timestamp, $hook, $args = array(), $group = '' ) {
	_deprecated_function( __FUNCTION__, '2.1.0', 'as_schedule_single_action()' );
	return as_schedule_single_action( $timestamp, $hook, $args, $group );
}