WP_Customize_Code_Editor_Control::enqueue
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 Customize Code Editor Control::enqueue WP 7.1.4
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
)
);
}