Automattic\WooCommerce\Admin\Features\Blueprint\Exporters

ExportWCCoreProfilerOptions::exportpublicWC 1.0

Export the step

Method of the class: ExportWCCoreProfilerOptions{}

No Hooks.

Returns

SetSiteOptions.

Usage

$ExportWCCoreProfilerOptions = new ExportWCCoreProfilerOptions();
$ExportWCCoreProfilerOptions->export();

ExportWCCoreProfilerOptions::export() code 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' ),
		)
	);
}