Automattic\WooCommerce\Blueprint

Logger::import_step_failedpublicWC 1.0

Log an import step failure.

Метод класса: Logger{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$Logger = new Logger();
$Logger->import_step_failed( $step_name, $result );
$step_name(строка) (обязательный)
The name of the step that failed.
$result(StepProcessorResult) (обязательный)
The result of the import.

Код Logger::import_step_failed() WC 10.0.2

public function import_step_failed( string $step_name, StepProcessorResult $result ) {
	$this->log(
		sprintf( 'Import "%s" step failed', $step_name ),
		\WC_Log_Levels::ERROR,
		array(
			'messages' => $result->get_messages( 'error' ),
		)
	);
}