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.
4472* @type array$codemirror Additional CodeMirror setting overrides.4473* @type array$csslint CSSLint rule overrides.4474* @type array$jshint JSHint rule overrides.4475* @type array$htmlhint HTMLHint rule overrides.4476*}4477*/4478returnapply_filters('wp_code_editor_settings',$settings,$args);4479}44804481/**4482* Retrieves the contents of the search WordPress query variable.4483*4484* 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.