WordPress at a glance
filter is not described

editable_extensions filter-hook . WP 2.8.0

Filters file type extensions editable in the plugin editor.

Usage

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

	return $plugin;
}
$plugin(string)
Plugin file.
$editable_extensions(array)
An array of editable plugin file extensions.

Notes

  • Since 4.9.0 Adds $plugin param.

Where the hook is called

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

Where the hook is used (in WP core)

Does not used.