WPDev.one
Core Function
View Source on Trac ↗

wp_get_plugin_file_editable_extensions()

wp_get_plugin_file_editable_extensions( mixed $plugin )

Gets the list of file extensions that are editable in plugins.

Parameters 1 required

Name / Type Description
$plugin
string

Path to the plugin file relative to the plugins directory.

Required

Return Value

(string[])
Array of editable file extensions.

Function Information

Since Version
4.9.0
Source File
wp-admin/includes/file.php
Advertisement