WC_Action_Queue::cancel_all( string $hook, array $args = array(), string $group = '' )
Dequeue all actions with a matching hook (and optionally matching args and group) so no matching actions are ever run.
Description Description
Parameters Parameters
- $hook
-
(Required) The hook that the job will trigger.
- $args
-
(Optional) Args that would have been passed to the job.
Default value: array()
- $group
-
(Optional) The group the job is assigned to (if any).
Default value: ''
Source Source
File: includes/queue/class-wc-action-queue.php
public function cancel_all( $hook, $args = array(), $group = '' ) { as_unschedule_all_actions( $hook, $args, $group ); }