Automattic\WooCommerce\Admin\Features\Blueprint\Importers
ImportSetWCTaxRates::process()
Process the import of WooCommerce tax rates.
Метод класса: ImportSetWCTaxRates{}
Хуков нет.
Возвращает
StepProcessorResult
.
Использование
$ImportSetWCTaxRates = new ImportSetWCTaxRates(); $ImportSetWCTaxRates->process( $schema ): StepProcessorResult;
- $schema(объект) (обязательный)
- The schema object containing import details.
Код ImportSetWCTaxRates::process() ImportSetWCTaxRates::process WC 9.7.1
public function process( $schema ): StepProcessorResult { $this->result = StepProcessorResult::success( SetWCTaxRates::get_step_name() ); foreach ( $schema->values->rates as $rate ) { $this->add_rate( $rate ); } foreach ( $schema->values->locations as $location ) { $this->add_location( $location ); } return $this->result; }