Uses
Uses | Description |
---|---|
wp-includes/general-template.php: wp_enqueue_code_editor() | Enqueue assets needed by the code editor for the given settings. |
Enqueue control related scripts/styles.
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 ) ); }
Version | Description |
---|---|
4.9.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_code_editor_control/enqueue