Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_code_editor_settings ›

Da4.9.0
Deprecaton/a
apply_filters( 'wp_code_editor_settings', $settings, $args )
Parametri: (2)
  • (array) $settings The array of settings passed to the code editor. A falsey value disables the editor.
    Richiesto:
  • (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 theme editor. @type string $plugin Plugin being edited when on plugin editor. @type array $codemirror Additional CodeMirror setting overrides. @type array $csslint CSSLint rule overrides. @type array $jshint JSHint rule overrides. @type array $htmlhint JSHint rule overrides. }
    Richiesto:
Definito a:
Codex:

Filters settings that are passed into the code editor.

Returning a falsey value will disable the syntax-highlighting code editor.





Sorgenti

return apply_filters( 'wp_code_editor_settings', $settings, $args );