WordPress at Your Fingertips
function is not described

ActionScheduler_DBStore::cancel_actions_by_hook() public WC 3.0.0

Cancel pending actions by hook.

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

No Hooks.

Return

null. Nothing.

Usage

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

Changelog

Since 3.0.0 Introduced.

Code of ActionScheduler_DBStore::cancel_actions_by_hook() WC 6.1.0

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