Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_theme_editor_filetypes ›

Da4.4.0
Deprecaton/a
apply_filters( 'wp_theme_editor_filetypes', $default_types, $theme )
Parametri: (2)
  • (string[]) $default_types List of allowed file types.
    Richiesto:
  • (WP_Theme) $theme The current Theme object.
    Richiesto:
Definito a:
Codex:

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





Sorgenti

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