Filters settings that are passed into the code editor.
Returning a falsey value will disable the syntax-highlighting code editor.
$settingsarray
$argsarray
get_code_editor_settings().type stringfile stringtheme WP_Themeplugin stringcodemirror arraycsslint arrayjshint arrayhtmlhint arrayreturn apply_filters( 'wp_code_editor_settings', $settings, $args );
| Version | Description |
|---|---|
| 4.9.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_code_editor_settings