Automattic\WooCommerce\Admin\Features\Blueprint
Init::get_step_groups_for_js
Return step groups for JS.
This is used to populate exportable items on the blueprint settings page.
Method of the class: Init{}
No Hooks.
Returns
Array.
Usage
$Init = new Init(); $Init->get_step_groups_for_js();
Init::get_step_groups_for_js() Init::get step groups for js code WC 10.5.0
public function get_step_groups_for_js() {
return array(
array(
'id' => 'settings',
'description' => __( 'Includes all the items featured in WooCommerce | Settings.', 'woocommerce' ),
'label' => __( 'WooCommerce Settings', 'woocommerce' ),
'icon' => 'settings',
'items' => array_map(
function ( $exporter ) {
return array(
'id' => $exporter instanceof HasAlias ? $exporter->get_alias() : $exporter->get_step_name(),
'label' => $exporter->get_label(),
'description' => $exporter->get_description(),
'checked' => true,
);
},
$this->get_woo_exporters()
),
),
array(
'id' => 'plugins',
'description' => __( 'Includes all the installed plugins.', 'woocommerce' ),
'label' => __( 'Plugins', 'woocommerce' ),
'icon' => 'plugins',
'items' => $this->get_plugins_for_export_group(),
),
array(
'id' => 'themes',
'description' => __( 'Includes all the installed themes.', 'woocommerce' ),
'label' => __( 'Themes', 'woocommerce' ),
'icon' => 'layout',
'items' => $this->get_themes_for_export_group(),
),
);
}