wp_theme_editor_filetypes WordPress Filter Hook

The wp_theme_editor_filetypes hook is used to add or remove theme editor file type support. This hook is used by the theme editor to determine which file types are allowed for editing.

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

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


Parameters

$default_types

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

$theme

(WP_Theme)The active theme object.


Top ↑

Source

File: wp-admin/includes/file.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.