Automattic\WooCommerce\Blueprint
Logger::start_import
Log the start of an import step.
Метод класса: Logger{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$Logger = new Logger(); $Logger->start_import( $step_name, $importer_class );
- $step_name(строка) (обязательный)
- The name of the step being imported.
- $importer_class(строка) (обязательный)
- The class name of the importer.
Код Logger::start_import() Logger::start import WC 10.0.2
public function start_import( string $step_name, string $importer_class ) { $this->log( sprintf( 'Starting import "%s" step', $step_name ), \WC_Log_Levels::INFO, array( 'importer' => $importer_class, ) ); }