wc_schedule_single_action()
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 schedule single action WC 7.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 ); }