WP_Customize_Code_Editor_Control::enqueue
Enqueue control related scripts/styles.
Method of the class: WP_Customize_Code_Editor_Control{}
No Hooks.
Returns
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() WP Customize Code Editor Control::enqueue code WP 6.8.3
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
)
);
}