WP_Customize_Code_Editor_Control::enqueue()
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() WP Customize Code Editor Control::enqueue code WP 6.6.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 ) ); }