WordPress at a glance
filter is not described

wp_theme_editor_filetypes filter-hook . WP 4.4.0

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

Usage

add_filter( 'wp_theme_editor_filetypes', 'filter_function_name_9200', 10, 2 );
function filter_function_name_9200( $default_types, $theme ){
	// filter...

	return $default_types;
}
$default_types(string[])
An array of editable theme file extensions.
$theme(WP_Theme)
The current theme object.

Changelog

Since 4.4.0 Introduced.

Where the hook is called

wp_get_theme_file_editable_extensions()
wp_theme_editor_filetypes
wp-admin/includes/file.php 291
$file_types = apply_filters( 'wp_theme_editor_filetypes', $default_types, $theme );

Where in WP core the hook is used WordPress

Usage not found.