Filters the list of file types allowed for editing in the plugin file editor.
$default_typesstring[]$pluginstringwp-admin/includes/file.php:239wp_get_plugin_file_editable_extensions() * @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. */ $file_types = (array) apply_filters( 'editable_extensions', $default_types, $plugin ); return $file_types;} /** * Gets the list of file extensions that are editable for a given theme.Introduced in 2.8.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.