apply_filters( 'editable_extensions', string[] $default_types, string $plugin )

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

Parameters

$default_types

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

$plugin

(string) Path to the plugin file relative to the plugins directory.

Source

File: wp-admin/includes/file.php

View on Trac

Changelog

Version Description
4.9.0 Added the $plugin parameter.
2.8.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/editable_extensions