WordPress at a glance
function is not described

WP_Customize_Partial::json() public WP 4.5.0

Retrieves the data to export to the client via JSON.

{} It's a method of the class: WP_Customize_Partial{}

No Hooks.

Return

Array. Array of parameters passed to the JavaScript.

Usage

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

Changelog

Since 4.5.0 Introduced.

Code of WP_Customize_Partial::json() WP 5.7.2

<?php
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;
}