Automattic\WooCommerce\Blueprint

ImportSchema::importpublicWC 1.0

Import the schema steps.

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

Хуков нет.

Возвращает

StepProcessorResult[].

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

$ImportSchema = new ImportSchema();
$ImportSchema->import();

Код ImportSchema::import() WC 10.0.2

public function import() {
	$results   = array();
	$result    = StepProcessorResult::success( 'ImportSchema' );
	$results[] = $result;

	foreach ( $this->schema->get_steps() as $step_schema ) {
		$step_importer = new ImportStep( $step_schema, $this->validator );
		$results[]     = $step_importer->import();
	}

	return $results;
}