Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_theme_editor_filetypes ›

Desde4.4.0
Obsoleton/a
apply_filters( 'wp_theme_editor_filetypes', $default_types, $theme )
Parâmetros: (2)
  • (string[]) $default_types List of allowed file types.
    Required: Yes
  • (WP_Theme) $theme The current Theme object.
    Required: Yes
Definido em:
Codex:

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





Fonte

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