WordPress at Your Fingertips
function is not described

ActionScheduler_WPCLI_QueueRunner::action_failed() public WC 1.0

Handle WP CLI message when the action has failed.

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

No Hooks.

Return

null. Nothing.

Usage

$ActionScheduler_WPCLI_QueueRunner = new ActionScheduler_WPCLI_QueueRunner();
$ActionScheduler_WPCLI_QueueRunner->action_failed( $action_id, $exception );
$action_id(int) (required)
-
$exception(Exception) (required)
-

Code of ActionScheduler_WPCLI_QueueRunner::action_failed() WC 6.1.1

public function action_failed( $action_id, $exception ) {
	WP_CLI::error(
		/* translators: 1: action ID 2: exception message */
		sprintf( __( 'Error processing action %1$s: %2$s', 'woocommerce' ), $action_id, $exception->getMessage() ),
		false
	);
}