ActionScheduler_WPCLI_QueueRunner::action_failed()
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() ActionScheduler WPCLI QueueRunner::action failed WC 7.7.0
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 ); }