Automattic\WooCommerce\Blueprint\Steps

Step::get_json_arraypublicWC 1.0

Get the JSON array for the step.

Method of the class: Step{}

No Hooks.

Returns

Mixed.

Usage

$Step = new Step();
$Step->get_json_array();

Step::get_json_array() code WC 9.9.5

public function get_json_array() {
	$json_array = $this->prepare_json_array();
	if ( ! empty( $this->meta_values ) ) {
		$json_array['meta'] = $this->meta_values;
	}
	return $json_array;
}