Automattic\WooCommerce\Admin\Features\Blueprint\Exporters
ExportWCCoreProfilerOptions::export()
Export the step
Метод класса: ExportWCCoreProfilerOptions{}
Хуков нет.
Возвращает
SetSiteOptions
.
Использование
$ExportWCCoreProfilerOptions = new ExportWCCoreProfilerOptions(); $ExportWCCoreProfilerOptions->export();
Код ExportWCCoreProfilerOptions::export() ExportWCCoreProfilerOptions::export WC 9.7.1
public function export() { $step = new SetSiteOptions( array( 'blogname' => $this->wp_get_option( 'blogname' ), 'woocommerce_allow_tracking' => $this->wp_get_option( 'woocommerce_allow_tracking' ), 'woocommerce_onboarding_profile' => $this->wp_get_option( 'woocommerce_onboarding_profile', array() ), 'woocommerce_default_country' => $this->wp_get_option( 'woocommerce_default_country' ), ) ); $step->set_meta_values( array( 'plugin' => 'woocommerce', 'alias' => $this->get_alias(), ) ); return $step; }