WC_Action_Queue::schedule_recurring()
Schedule a recurring action
Метод класса: WC_Action_Queue{}
Хуков нет.
Возвращает
Строку
. The action ID.
Использование
$WC_Action_Queue = new WC_Action_Queue(); $WC_Action_Queue->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.
- $args(массив)
- Arguments to pass when the hook triggers.
По умолчанию: array() - $group(строка)
- The group to assign this job to.
По умолчанию: ''
Код WC_Action_Queue::schedule_recurring() WC Action Queue::schedule recurring WC 8.7.0
public function schedule_recurring( $timestamp, $interval_in_seconds, $hook, $args = array(), $group = '' ) { return as_schedule_recurring_action( $timestamp, $interval_in_seconds, $hook, $args, $group ); }