wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_theme_editor_filetypes › WordPress Filter Hooks

Seit4.4.0
Veraltetn/v
apply_filters( 'wp_theme_editor_filetypes', $default_types, $theme )
Parameter: (2)
  • (string[]) $default_types An array of editable theme file extensions.
    Erforderlich: Ja
  • (WP_Theme) $theme The active theme object.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the list of file types allowed for editing in the theme file editor.





Quellcode

$file_types = apply_filters( 'wp_theme_editor_filetypes', $default_types, $theme );