wp_theme_editor_filetypes WordPress Filter Hook
The wp_theme_editor_filetypes hook is used to add or remove theme editor file type support. This hook is used by the theme editor to determine which file types are allowed for editing.
apply_filters( 'wp_theme_editor_filetypes', string[] $default_types , WP_Theme $theme ) #
Filters the list of file types allowed for editing in the theme file editor.
Parameters
- $default_types
(string[])An array of editable theme file extensions.
- $theme
(WP_Theme)The active theme object.
Source
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |