apply_filters( 'wp_theme_editor_filetypes', array $default_types , WP_Theme $theme )
Filters the list of file types allowed for editing in the Theme editor.
Parameters
- $default_types
-
(array) List of file types. Default types include 'php' and 'css'.
- $theme
-
(WP_Theme) The current Theme object.
Source
Changelog
Version | Description |
---|---|
WP-4.4.0 | Introduced. |