WP_Customize_Code_Editor_Control::json()publicWP 4.9.0

Refresh the parameters passed to the JavaScript via JSON.

{} It's a method of the class: WP_Customize_Code_Editor_Control{}

No Hooks.

Return

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.

Code of WP_Customize_Code_Editor_Control::json() WP 6.0

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