WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Action_Queue::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.

While technically only the next instance of a recurring or cron action is unscheduled by this method, that will also prevent all future instances of that recurring or cron action from being run. Recurring and cron actions are scheduled in a sequence instead of all being scheduled at once. Each successive occurrence of a recurring action is scheduled only after the former action is run. As the next instance is never run, because it's unscheduled by this function, then the following instance will never be scheduled (or exist), which is effectively the same as being unscheduled by this method also.

Это метод класса: WC_Action_Queue{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

$WC_Action_Queue = new WC_Action_Queue();
$WC_Action_Queue->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 Action Queue::cancel: woocommerce/includes/queue/class-wc-action-queue.php WC 4.5.2

<?php
public function cancel( $hook, $args = array(), $group = '' ) {
	as_unschedule_action( $hook, $args, $group );
}