Filter hook 'wp_code_editor_settings'

in WP Core File wp-includes/general-template.php at line 4296

Description

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

Occurrences

Filename Line Number
wp-includes/general-template.php 4296

Parameters

Type Name Description
array $settings The array of settings passed to the code editor. A falsey value disables the editor.
array $args { Args passed when calling `get_code_editor_settings()`.

PHP Doc

/**
	 * Filters settings that are passed into the code editor.
	 *
	 * Returning a falsey value will disable the syntax-highlighting code editor.
	 *
	 * @since 4.9.0
	 *
	 * @param array $settings The array of settings passed to the code editor.
	 *                        A falsey value disables the editor.
	 * @param array $args {
	 *     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.
	 * }
	 */