ActionScheduler_DBStore::cancel_actions_by_hook()publicWC 3.0.0

Cancel pending actions by hook.

Method of the class: ActionScheduler_DBStore{}

No Hooks.

Return

null. Nothing (null).

Usage

$ActionScheduler_DBStore = new ActionScheduler_DBStore();
$ActionScheduler_DBStore->cancel_actions_by_hook( $hook );
$hook(string) (required)
Hook name.

Changelog

Since 3.0.0 Introduced.

ActionScheduler_DBStore::cancel_actions_by_hook() code WC 8.7.0

public function cancel_actions_by_hook( $hook ) {
	$this->bulk_cancel_actions( array( 'hook' => $hook ) );
}