Filter hook 'editable_extensions'

in WP Core File wp-admin/includes/file.php at line 238

Description

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

Occurrences

Filename Line Number
wp-admin/includes/file.php 238

Parameters

Type Name Description
string[] $default_types An array of editable plugin file extensions.
string $plugin Path to the plugin file relative to the plugins directory.

PHP Doc

/**
	 * Filters the list of file types allowed for editing in the plugin file editor.
	 *
	 * @since 2.8.0
	 * @since 4.9.0 Added the `$plugin` parameter.
	 *
	 * @param string[] $default_types An array of editable plugin file extensions.
	 * @param string   $plugin        Path to the plugin file relative to the plugins directory.
	 */