Automattic\WooCommerce\Admin\Features\Blueprint
Init::get_woo_exporters()
Return Woo Exporter classnames.
Method of the class: Init{}
No Hooks.
Return
StepExporter[]
.
Usage
$Init = new Init(); $Init->get_woo_exporters();
Init::get_woo_exporters() Init::get woo exporters code 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 ); }