Automattic\WooCommerce\Blueprint\Steps
InstallTheme::prepare_json_array
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() InstallTheme::prepare json array WC 10.7.0
public function prepare_json_array(): array {
return array(
'step' => static::get_step_name(),
'themeData' => array(
'resource' => $this->resource,
'slug' => $this->slug,
),
'options' => $this->options,
);
}