Automattic\WooCommerce\Internal\ProductAttributesLookup
CLIRunner::error()
Show an error message using the WP_CLI text colorization feature.
Метод класса: CLIRunner{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->error( $text );
- $text(строка) (обязательный)
- Text to show.
Код CLIRunner::error() CLIRunner::error WC 9.7.1
private function error( string $text ) { WP_CLI::error( WP_CLI::colorize( $text ) ); }