WordPress at Your Fingertips
function is not described

WC_Queue_Interface::cancel() public WC 1.0

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.

{} It's a method of the class: WC_Queue_Interface{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Queue_Interface = new WC_Queue_Interface();
$WC_Queue_Interface->cancel( $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: ''

Code of WC_Queue_Interface::cancel() WC 5.8.0

public function cancel( $hook, $args = array(), $group = '' );