wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_theme_editor_filetypes › WordPress Filter Hooks

Since4.4.0
Deprecatedn/a
apply_filters( 'wp_theme_editor_filetypes', $default_types, $theme )
Parameters: (2)
  • (string[]) $default_types An array of editable theme file extensions.
    Required: Yes
  • (WP_Theme) $theme The active theme object.
    Required: Yes
Defined at:
Codex:

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





Source

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