WP_Customize_Code_Editor_Control::json
Refresh the parameters passed to the JavaScript via JSON.
Method of the class: WP_Customize_Code_Editor_Control{}
No Hooks.
Returns
Array. Array of parameters passed to the JavaScript.
Usage
$WP_Customize_Code_Editor_Control = new WP_Customize_Code_Editor_Control(); $WP_Customize_Code_Editor_Control->json();
Notes
Changelog
| Since 4.9.0 | Introduced. |
WP_Customize_Code_Editor_Control::json() WP Customize Code Editor Control::json code WP 7.0.2
public function json() {
$json = parent::json();
$json['editor_settings'] = $this->editor_settings;
$json['input_attrs'] = $this->input_attrs;
return $json;
}