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.


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

	return $default_types;
An array of editable plugin file extensions.
Path to the plugin file relative to the plugins directory.


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

Where the hook is called

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.