wp_theme_editor_filetypes

Advertisement

Summery Summery

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

Syntax Syntax

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

Parameters Parameters

$default_types

An array of editable theme file extensions.

$theme

The current theme object.

Source Source

File: wp-admin/includes/file.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply