wp_get_code_editor_settings


wp_get_code_editor_settings ( $args )

Parameters:
  • (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. }
See:
Returns:
  • (array|false) Settings for the code editor.
Defined at:

Description

Generates and returns code editor settings.

Related Functions

get_block_editor_settings, get_default_block_editor_settings, _wp_get_iframed_editor_assets, wp_set_all_user_settings, wp_get_global_settings

Top Google Results

User discussions

wpseek mobile