WP_Customize_Code_Editor_Control::enqueue

Advertisement

Summery Summery

Enqueue control related scripts/styles.

Syntax Syntax

WP_Customize_Code_Editor_Control::enqueue()

Source Source

File: wp-includes/customize/class-wp-customize-code-editor-control.php

	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
			)
		);
	}

Advertisement

Changelog Changelog

Changelog
Version Description
4.9.0 Introduced.

Advertisement

Leave a Reply