WordPress at a glance
filter is not described

editable_extensions filter-hook . WP 2.8.0

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

Usage

add_filter( 'editable_extensions', 'filter_function_name_8442', 10, 2 );
function filter_function_name_8442( $default_types, $plugin ){
	// filter...

	return $default_types;
}
$default_types(string[])
An array of editable plugin file extensions.
$plugin(string)
Path to the plugin file relative to the plugins directory.

Changelog

Since 2.8.0 Introduced.
Since 4.9.0 Added the $plugin parameter.

Where the hook is called

wp_get_plugin_file_editable_extensions()
editable_extensions
wp-admin/includes/file.php 233
$file_types = (array) apply_filters( 'editable_extensions', $default_types, $plugin );

Where in WP core the hook is used WordPress

Usage not found.