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.


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

	return $default_types;
List of allowed file types.
The current Theme object.

Where the hook is called

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

Where the hook is used (in WP core)

Использование не найдено.