Automattic\WooCommerce\Blueprint\Steps
InstallTheme::prepare_json_array
Prepares an associative array for JSON encoding.
Method of the class: InstallTheme{}
No Hooks.
Returns
Array. The JSON-encoded array representing this installation step.
Usage
$InstallTheme = new InstallTheme(); $InstallTheme->prepare_json_array(): array;
InstallTheme::prepare_json_array() InstallTheme::prepare json array code WC 10.8.1
public function prepare_json_array(): array {
return array(
'step' => static::get_step_name(),
'themeData' => array(
'resource' => $this->resource,
'slug' => $this->slug,
),
'options' => $this->options,
);
}