Automattic\WooCommerce\Admin\Features\Blueprint\Exporters
ExportWCCoreProfilerOptions::export
Export the step
Метод класса: ExportWCCoreProfilerOptions{}
Хуков нет.
Возвращает
SetSiteOptions.
Использование
$ExportWCCoreProfilerOptions = new ExportWCCoreProfilerOptions(); $ExportWCCoreProfilerOptions->export();
Код ExportWCCoreProfilerOptions::export() ExportWCCoreProfilerOptions::export WC 10.5.0
public function export() {
return 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' ),
)
);
}