Automattic\WooCommerce\Blueprint\Steps

ActivateTheme::prepare_json_arraypublicWC 1.0

Prepares an associative array for JSON encoding.

Method of the class: ActivateTheme{}

No Hooks.

Returns

Array. Array of data to be encoded as JSON.

Usage

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

ActivateTheme::prepare_json_array() code WC 9.9.5

public function prepare_json_array(): array {
	return array(
		'step'            => static::get_step_name(),
		'themeFolderName' => $this->theme_folder_name,
	);
}