WC_Queue_Interface::cancel_all()
Dequeue all actions with a matching hook (and optionally matching args and group) so no matching actions are ever run.
Method of the class: WC_Queue_Interface{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Queue_Interface = new WC_Queue_Interface(); $WC_Queue_Interface->cancel_all( $hook, $args, $group );
- $hook(string) (required)
- The hook that the job will trigger.
- $args(array)
- Args that would have been passed to the job.
Default: array() - $group(string)
- The group the job is assigned to (if any).
Default: ''
WC_Queue_Interface::cancel_all() WC Queue Interface::cancel all code WC 9.5.1
public function cancel_all( $hook, $args = array(), $group = '' );