Automattic\WooCommerce\Admin\Features\Blueprint

Init::get_woo_exporters()publicWC 1.0

Return Woo Exporter classnames.

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

Хуков нет.

Возвращает

StepExporter[].

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

$Init = new Init();
$Init->get_woo_exporters();

Код Init::get_woo_exporters() WC 9.7.1

public function get_woo_exporters() {
	$classnames = array(
		ExportWCCoreProfilerOptions::class,
		ExportWCSettings::class,
		ExportWCPaymentGateways::class,
		ExportWCShipping::class,
		ExportWCTaskOptions::class,
		ExportWCTaxRates::class,
	);

	$exporters = array();
	foreach ( $classnames as $classname ) {
		$exporters[ $classname ]                   = $this->initialized_exporters[ $classname ] ?? new $classname();
		$this->initialized_exporters[ $classname ] = $exporters[ $classname ];
	}

	return array_values( $exporters );
}