Automattic\WooCommerce\Blueprint
ImportStep::import
Import the schema steps.
Метод класса: ImportStep{}
Хуков нет.
Возвращает
StepProcessorResult
.
Использование
$ImportStep = new ImportStep(); $ImportStep->import();
Код ImportStep::import() ImportStep::import WC 10.0.2
public function import() { $result = StepProcessorResult::success( $this->step_definition->step ); if ( ! $this->can_import( $result ) ) { return $result; } $importer = $this->indexed_importers[ $this->step_definition->step ]; $logger = new Logger(); $logger->start_import( $this->step_definition->step, get_class( $importer ) ); $importer_result = $importer->process( $this->step_definition ); if ( $importer_result->is_success() ) { $logger->complete_import( $this->step_definition->step, $importer_result ); } else { $logger->import_step_failed( $this->step_definition->step, $importer_result ); } $result->merge_messages( $importer_result ); return $result; }