ActionScheduler_HybridStore::cancel_action()publicWC 1.0

Cancel an existing action whether migrated or not.

Method of the class: ActionScheduler_HybridStore{}

No Hooks.

Return

null. Nothing (null).

Usage

$ActionScheduler_HybridStore = new ActionScheduler_HybridStore();
$ActionScheduler_HybridStore->cancel_action( $action_id );
$action_id(int) (required)
Action ID.

ActionScheduler_HybridStore::cancel_action() code WC 8.6.1

public function cancel_action( $action_id ) {
	$store = $this->get_store_from_action_id( $action_id );
	if ( $store ) {
		$store->cancel_action( $action_id );
	}
}