WordPress at a glance
function is not described

wp_get_plugin_file_editable_extensions() WP 4.9.0

Get list of file extensions that are editable in plugins.

Hooks in function

Array. File extensions.


wp_get_plugin_file_editable_extensions( $plugin );
$plugin(string) (required)

Code of wp get plugin file editable extensions: wp-admin/includes/file.php VER 5.0.3

function wp_get_plugin_file_editable_extensions( $plugin ) {

	$editable_extensions = array(

	 * Filters file type extensions editable in the plugin editor.
	 * @since 2.8.0
	 * @since 4.9.0 Adds $plugin param.
	 * @param string $plugin Plugin file.
	 * @param array $editable_extensions An array of editable plugin file extensions.
	$editable_extensions = (array) apply_filters( 'editable_extensions', $editable_extensions, $plugin );

	return $editable_extensions;