WC_Action_Queue::cancel_all()
Dequeue all actions with a matching hook (and optionally matching args and group) so no matching actions are ever run.
Метод класса: WC_Action_Queue{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Action_Queue = new WC_Action_Queue(); $WC_Action_Queue->cancel_all( $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_Action_Queue::cancel_all() WC Action Queue::cancel all WC 8.7.0
public function cancel_all( $hook, $args = array(), $group = '' ) { as_unschedule_all_actions( $hook, $args, $group ); }