WP_Customize_Control::json()publicWP 4.1.0

Get the data to export to the client via JSON.

Method of the class: WP_Customize_Control{}

No Hooks.

Return

Array. Array of parameters passed to the JavaScript.

Usage

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

Changelog

Since 4.1.0 Introduced.

WP_Customize_Control::json() code WP 6.5.2

public function json() {
	$this->to_json();
	return $this->json;
}