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
File: wp-admin/includes/file.php
.
View all references
$file_types = apply_filters( 'wp_theme_editor_filetypes', $default_types, $theme );
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |