A WordPress-centric search engine for devs and theme authors



wp_theme_editor_filetypes ›

Since4.4.0
Deprecatedn/a
apply_filters( 'wp_theme_editor_filetypes', $default_types, $theme )
Parameters: (2)
  • (string[]) $default_types List of allowed file types.
    Required: Yes
  • (WP_Theme) $theme The current Theme object.
    Required: Yes
Defined at:
Codex:

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





Source

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