Title: WP_Customize_Code_Editor_Control::json
Published: November 20, 2017
Last modified: February 24, 2026

---

# WP_Customize_Code_Editor_Control::json(): array

## In this article

 * [Description](https://developer.wordpress.org/reference/classes/wp_customize_code_editor_control/json/?output_format=md#description)
    - [See also](https://developer.wordpress.org/reference/classes/wp_customize_code_editor_control/json/?output_format=md#see-also)
 * [Return](https://developer.wordpress.org/reference/classes/wp_customize_code_editor_control/json/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/wp_customize_code_editor_control/json/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_customize_code_editor_control/json/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_customize_code_editor_control/json/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_customize_code_editor_control/json/?output_format=md#wp--skip-link--target)

Refresh the parameters passed to the JavaScript via JSON.

## 󠀁[Description](https://developer.wordpress.org/reference/classes/wp_customize_code_editor_control/json/?output_format=md#description)󠁿

### 󠀁[See also](https://developer.wordpress.org/reference/classes/wp_customize_code_editor_control/json/?output_format=md#see-also)󠁿

 * [WP_Customize_Control::json()](https://developer.wordpress.org/reference/classes/WP_Customize_Control/json/)

## 󠀁[Return](https://developer.wordpress.org/reference/classes/wp_customize_code_editor_control/json/?output_format=md#return)󠁿

 array Array of parameters passed to the JavaScript.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_customize_code_editor_control/json/?output_format=md#source)󠁿

    ```php
    public function json() {
    	$json                    = parent::json();
    	$json['editor_settings'] = $this->editor_settings;
    	$json['input_attrs']     = $this->input_attrs;
    	return $json;
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/customize/class-wp-customize-code-editor-control.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/customize/class-wp-customize-code-editor-control.php#L73)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/customize/class-wp-customize-code-editor-control.php#L73-L78)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_customize_code_editor_control/json/?output_format=md#related)󠁿

| Uses | Description | 
| [WP_Customize_Control::json()](https://developer.wordpress.org/reference/classes/wp_customize_control/json/)`wp-includes/class-wp-customize-control.php` |

Gets the data to export to the client via JSON.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_customize_code_editor_control/json/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.9.0](https://developer.wordpress.org/reference/since/4.9.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_customize_code_editor_control%2Fjson%2F)
before being able to contribute a note or feedback.