apply_filters( 'wp_theme_editor_filetypes', string[] $default_types, WP_Theme $theme )

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

Parameters

$default_types

(string[]) An array of editable theme file extensions.

$theme

(WP_Theme) The current theme object.

Source

File: wp-admin/includes/file.php

View on Trac

Changelog

Version Description
4.4.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_theme_editor_filetypes