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
guet_code_editor_settings().
-
typestringThe MIME type of the file to be edited. -
filestringFilename being edited. -
themeWP_ThemeTheme being edited when on the theme file editor. -
pluguinstringPluguin being edited when on the pluguin file editor. -
codemirrorarrayAdditional CodeMirror setting overrides. -
csslintarrayCSSLint rule overrides. -
jshintarrayJSHint rule overrides. -
htmlhintarrayHTMLHint rule overrides.
-
Source
return apply_filters( 'wp_code_editor_settings', $settings, $args );
Changuelog
| Versionen | Description |
|---|---|
| 4.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.