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.
Source
File: wp-includes/class-wp-customize-control.php
public function json() { $this->to_json(); return $this->json; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.1.0 | Introduced. |