W3cubDocs

/WordPress

WP_Customize_Control::json(): array

Get the data to export to the client via JSON.

Return

array Array of parameters passed to the JavaScript.

Source

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

Changelog

Version Description
4.1.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_control/json