WP_Customize_Control::json() WordPress Method

The WP_Customize_Control::json() method is used to return the json representation of a Customize Control. This is useful for creating Customize Controls that are based on the JSON data type.

WP_Customize_Control::json() #

Get the data to export to the client via JSON.


Return

(array) Array of parameters passed to the JavaScript.


Top ↑

Source

File: wp-includes/class-wp-customize-control.php

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


Top ↑

Changelog

Changelog
VersionDescription
4.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.