wp_code_editor_settings – filter

Filters settings that are passed into the code editor. Returning a falsey value will disable the syntax-highlighting code editor.

Parameters

.
( 4.9.0 ) . .
$settings
( array ) The array of settings passed to the code editor. A falsey value disables the editor. . . .
$args
( array ) { Args passed when calling `get_code_editor_settings()`. . . .
( string ) $type The MIME type of the file to be edited. . . .
( string ) $file Filename being edited. . . .
$theme
( WP_Theme ) Theme being edited when on the theme file editor. . . .
( string ) $plugin Plugin being edited when on the plugin file editor. . . .
( array ) $codemirror Additional CodeMirror setting overrides. . . .
( array ) $csslint CSSLint rule overrides. . . .
( array ) $jshint JSHint rule overrides. . . .
( array ) $htmlhint HTMLHint rule overrides. } . . .
API Letters: ,,,

Implementers