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

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

$theme

(WP_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

This site uses Akismet to reduce spam. Learn how your comment data is processed.