WC_Queue_Interface::cancel()
Dequeue the next scheduled instance of an action with a matching hook (and optionally matching args and group).
Any recurring actions with a matching hook should also be cancelled, not just the next scheduled action.
Метод класса: WC_Queue_Interface{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Queue_Interface = new WC_Queue_Interface(); $WC_Queue_Interface->cancel( $hook, $args, $group );
- $hook(строка) (обязательный)
- The hook that the job will trigger.
- $args(массив)
- Args that would have been passed to the job.
По умолчанию: array() - $group(строка)
- The group the job is assigned to (if any).
По умолчанию: ''
Код WC_Queue_Interface::cancel() WC Queue Interface::cancel WC 9.6.0
public function cancel( $hook, $args = array(), $group = '' );