apply_filters( ‘editable_extensions’, string[] $default_types, string $plugin )

In this article

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

Parameters

$default_typesstring[]
An array of editable plugin file extensions.
$pluginstring
Path to the plugin file relative to the plugins directory.

Source

$file_types = (array) apply_filters( 'editable_extensions', $default_types, $plugin );

Changelog

VersionDescription
4.9.0Added the $plugin parameter.
2.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.