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.


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

	return $plugin;
Plugin file.
An array of editable plugin file extensions.


  • Since 4.9.0 Adds $plugin param.

Where the hook is called

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.