On this page
apply_filters( 'editable_extensions', string[] $default_types, string $plugin )
Filters the list of file types allowed for editing in the plugin file editor.
Parameters
$default_typesstring[]-
An array of editable plugin file extensions.
$pluginstring-
Path to the plugin file relative to the plugins directory.
Source
File: wp-admin/includes/file.php. View all references
$file_types = (array) apply_filters( 'editable_extensions', $default_types, $plugin );
Related
Used By
| Used By | Description |
|---|---|
| wp_get_plugin_file_editable_extensions() wp-admin/includes/file.php | Gets the list of file extensions that are editable in plugins. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/editable_extensions