wp_enqueue_code_editor ( $args )

  • (array) args { Args. @type string $type The MIME type of the file to be edited. @type string $file Filename to be edited. Extension is used to sniff the type. Can be supplied as alternative to `$type` param. @type WP_Theme $theme Theme being edited when on the theme file editor. @type string $plugin Plugin being edited when on the plugin file editor. @type array $codemirror Additional CodeMirror setting overrides. @type array $csslint CSSLint rule overrides. @type array $jshint JSHint rule overrides. @type array $htmlhint HTMLHint rule overrides. }
  • (array|false) Settings for the enqueued code editor, or false if the editor was not enqueued.
Defined at:


Enqueues assets needed by the code editor for the given settings.

Related Functions

wp_enqueue_editor, wp_enqueue_media, wp_enqueue_embed_styles, wp_enqueue_script, wp_enqueue_scripts

Top Google Results

User discussions

wpseek mobile