Automattic\WooCommerce\Admin\Features\Blueprint\Exporters
ExportWCCoreProfilerOptions{}
ExportWCCoreProfilerOptions class
No Hooks.
Usage
$ExportWCCoreProfilerOptions = new ExportWCCoreProfilerOptions(); // use class methods
Methods
- public export()
- public get_alias()
- public get_step_name()
ExportWCCoreProfilerOptions{} ExportWCCoreProfilerOptions{} code WC 9.6.1
class ExportWCCoreProfilerOptions implements StepExporter, HasAlias { use UseWPFunctions; /** * Export the step * * @return SetSiteOptions */ 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; } /** * Get the step name * * @return string */ public function get_step_name() { return 'setSiteOptions'; } /** * Get the alias * * @return string */ public function get_alias() { return 'setWCCoreProfilerOptions'; } }