WordPress at a glance
function is not described

WP_Customize_Code_Editor_Control::json() public WP 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

  • See: WP_Customize_Control::json()

Changelog

Since 4.9.0 Introduced.

Code of WP_Customize_Code_Editor_Control::json() WP 5.7.2

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