Automattic\WooCommerce\Blueprint\Steps

InstallTheme::prepare_json_arraypublicWC 1.0

Prepares an associative array for JSON encoding.

Метод класса: InstallTheme{}

Хуков нет.

Возвращает

Массив. The JSON-encoded array representing this installation step.

Использование

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

Код InstallTheme::prepare_json_array() WC 10.0.2

public function prepare_json_array(): array {
	return array(
		'step'      => static::get_step_name(),
		'themeData' => array(
			'resource' => $this->resource,
			'slug'     => $this->slug,
		),
		'options'   => $this->options,
	);
}