Automattic\WooCommerce\Admin\Features\Blueprint\Steps

SetWCShipping::prepare_json_array()publicWC 1.0

Prepare the JSON array for the step.

Method of the class: SetWCShipping{}

No Hooks.

Return

Array. The JSON array.

Usage

$SetWCShipping = new SetWCShipping();
$SetWCShipping->prepare_json_array(): array;

SetWCShipping::prepare_json_array() code WC 9.7.1

public function prepare_json_array(): array {
	return array(
		'step'   => static::get_step_name(),
		'values' => array(
			'shipping_methods'   => $this->methods,
			'shipping_locations' => $this->locations,
			'shipping_zones'     => $this->zones,
			'terms'              => $this->terms,
			'classes'            => $this->classes,
			'local_pickup'       => $this->local_pickup,
		),
	);
}