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

In this article

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

Parameters

$default_typesstring[]
An array of editable theme file extensions.
$themeWP_Theme
The active theme object.

Source

$file_types = apply_filters( 'wp_theme_editor_filetypes', $default_types, $theme );

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.