WP_Customize_Partial::json()publicWP 4.5.0

Retrieves the data to export to the client via JSON.

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

Хуков нет.

Возвращает

Массив. Array of parameters passed to the JavaScript.

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

$WP_Customize_Partial = new WP_Customize_Partial();
$WP_Customize_Partial->json();

Список изменений

С версии 4.5.0 Введена.

Код WP_Customize_Partial::json() WP 6.5.2

public function json() {
	$exports = array(
		'settings'           => $this->settings,
		'primarySetting'     => $this->primary_setting,
		'selector'           => $this->selector,
		'type'               => $this->type,
		'fallbackRefresh'    => $this->fallback_refresh,
		'containerInclusive' => $this->container_inclusive,
	);
	return $exports;
}