ActionScheduler_WPCLI_QueueRunner::action_failed()publicWC 1.0

Handle WP CLI message when the action has failed.

{} Это метод класса: ActionScheduler_WPCLI_QueueRunner{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$ActionScheduler_WPCLI_QueueRunner = new ActionScheduler_WPCLI_QueueRunner();
$ActionScheduler_WPCLI_QueueRunner->action_failed( $action_id, $exception );
$action_id(int) (обязательный)
-
$exception(Exception) (обязательный)
-

Код ActionScheduler_WPCLI_QueueRunner::action_failed() WC 6.9.4

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
	);
}