WP_Customize_Code_Editor_Control::enqueue()publicWP 4.9.0

Enqueue control related scripts/styles.

Method of the class: WP_Customize_Code_Editor_Control{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_Customize_Code_Editor_Control = new WP_Customize_Code_Editor_Control();
$WP_Customize_Code_Editor_Control->enqueue();

Changelog

Since 4.9.0 Introduced.

WP_Customize_Code_Editor_Control::enqueue() code WP 6.5.2

public function enqueue() {
	$this->editor_settings = wp_enqueue_code_editor(
		array_merge(
			array(
				'type'       => $this->code_type,
				'codemirror' => array(
					'indentUnit' => 2,
					'tabSize'    => 2,
				),
			),
			$this->editor_settings
		)
	);
}