ActionScheduler_HybridStore::cancel_action() public WC 1.0
Cancel an existing action whether migrated or not.
{} It's a method of the class: ActionScheduler_HybridStore{}
No Hooks.
Return
null
. Nothing.
Usage
$ActionScheduler_HybridStore = new ActionScheduler_HybridStore(); $ActionScheduler_HybridStore->cancel_action( $action_id );
- $action_id(int) (required)
- Action ID.
Code of ActionScheduler_HybridStore::cancel_action() ActionScheduler HybridStore::cancel action WC 5.2.2
public function cancel_action( $action_id ) {
$store = $this->get_store_from_action_id( $action_id );
if ( $store ) {
$store->cancel_action( $action_id );
}
}