WordPress at a glance
function is not described

wp_get_theme_file_editable_extensions() WP 1.0

Get list of file extensions that are editable for a given theme.

Hooks in function

Array. File extensions.


wp_get_theme_file_editable_extensions( $theme );
$theme(WP_Theme) (required)

Code of wp get theme file editable extensions: wp-admin/includes/file.php VER 5.0.3

function wp_get_theme_file_editable_extensions( $theme ) {

	$default_types = array(

	 * Filters the list of file types allowed for editing in the Theme editor.
	 * @since 4.4.0
	 * @param array    $default_types List of file types. Default types include 'php' and 'css'.
	 * @param WP_Theme $theme         The current Theme object.
	$file_types = apply_filters( 'wp_theme_editor_filetypes', $default_types, $theme );

	// Ensure that default types are still there.
	return array_unique( array_merge( $file_types, $default_types ) );