WP_Customize_Control::json
Gets the data to export to the client via JSON.
Method of the class: WP_Customize_Control{}
No Hooks.
Returns
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() WP Customize Control::json code WP 7.0.2
public function json() {
$this->to_json();
return $this->json;
}