WC_Queue_Interface::schedule_single()publicWC 1.0

Schedule an action to run once at some time in the future

Метод класса: WC_Queue_Interface{}

Хуков нет.


Строку. The action ID


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

Код WC_Queue_Interface::schedule_single() WC 9.0.2

public function schedule_single( $timestamp, $hook, $args = array(), $group = '' );