WP_Customize_Code_Editor_Control::enqueue()publicWP 4.9.0

Enqueue control related scripts/styles.

Метод класса: WP_Customize_Code_Editor_Control{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

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

Список изменений

С версии 4.9.0 Введена.

Код WP_Customize_Code_Editor_Control::enqueue() 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
		)
	);
}