Uses
Uses | Description |
---|---|
wp-includes/class-wp-customize-control.php: WP_Customize_Control::json() | Get the data to export to the client via JSON. |
Refresh the parameters passed to the JavaScript via JSON.
(array) Array of parameters passed to the JavaScript.
File: wp-includes/customize/class-wp-customize-code-editor-control.php
public function json() { $json = parent::json(); $json['editor_settings'] = $this->editor_settings; $json['input_attrs'] = $this->input_attrs; return $json; }
Version | Description |
---|---|
4.9.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_code_editor_control/json