ActionScheduler_Store::bulk_cancel_actions()privateWC 3.0.0

Cancel a set of action IDs.

Method of the class: ActionScheduler_Store{}

Hooks from the method

Return

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->bulk_cancel_actions( $action_ids );
$action_ids(array) (required)
List of action IDs.

Changelog

Since 3.0.0 Introduced.

ActionScheduler_Store::bulk_cancel_actions() code WC 8.7.0

private function bulk_cancel_actions( $action_ids ) {
	foreach ( $action_ids as $action_id ) {
		$this->cancel_action( $action_id );
	}

	do_action( 'action_scheduler_bulk_cancel_actions', $action_ids );
}