wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_theme_editor_filetypes › Filtr WordPress Hooks

Od4.4.0
Przestarzałyn/a
apply_filters( 'wp_theme_editor_filetypes', $default_types, $theme )
Parametry: (2)
  • (string[]) $default_types An array of editable theme file extensions.
    Wymagane: Tak
  • (WP_Theme) $theme The active theme object.
    Wymagane: Tak
Zdefiniowane na:
Codex:

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





Źródło

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