ActionScheduler_WPCLI_Scheduler_command::print_error()
Convert an exception into a WP CLI error.
Метод класса: ActionScheduler_WPCLI_Scheduler_command{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->print_error( $e );
- $e(Exception) (обязательный)
- The error object.
Код ActionScheduler_WPCLI_Scheduler_command::print_error() ActionScheduler WPCLI Scheduler command::print error WC 7.7.2
protected function print_error( Exception $e ) { WP_CLI::error( sprintf( /* translators: %s refers to the exception error message */ __( 'There was an error running the action scheduler: %s', 'woocommerce' ), $e->getMessage() ) ); }