WC_Queue_Interface::schedule_recurring()publicWC 1.0

Schedule a recurring action

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

Хуков нет.


Строку. The action ID


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

Код WC_Queue_Interface::schedule_recurring() WC 8.9.0

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