apply_filters( 'wp_theme_editor_filetypes', array $default_types, WP_Theme $theme )

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


Parameters

$default_types

List of file types. Default types include 'php' and 'css'.

$theme

The current Theme object.


Source

File: wp-admin/includes/file.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.4.0 Introduced.