Filters settings that are passed into the code editor.
Description
Returning a falsey value will disable the syntax-highlighting code editor.
Parameters
$settingsarray
The array of settings passed to the code editor. A falsey value disables the editor.
$argsarray
{ Args passed when calling get_code_editor_settings(). @type string $type The MIME type of the file to be edited. @type string $file Filename being edited. @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.}
$typestring
The MIME type of the file to be edited.
$filestring
Filename being edited.
$themeWP_Theme
Theme being edited when on the theme file editor.
$pluginstring
Plugin being edited when on the plugin file editor.
4677* @type array$codemirror Additional CodeMirror setting overrides.4678* @type array$csslint CSSLint rule overrides.4679* @type array$jshint JSHint rule overrides.4680* @type array$htmlhint HTMLHint rule overrides.4681*}4682*/4683returnapply_filters('wp_code_editor_settings',$settings,$args);4684}46854686/**4687* Retrieves the contents of the search WordPress query variable.4688*4689* The search query string is passed through esc_attr() to ensure that it is safe
History
Introduced in 4.9.0. Unchanged from 6.7.7 through 7.1.0.