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.
4449* @type array$codemirror Additional CodeMirror setting overrides.4450* @type array$csslint CSSLint rule overrides.4451* @type array$jshint JSHint rule overrides.4452* @type array$htmlhint HTMLHint rule overrides.4453*}4454*/4455returnapply_filters('wp_code_editor_settings',$settings,$args);4456}44574458/**4459* Retrieves the contents of the search WordPress query variable.4460*4461* 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.