Core Function
View Source on Trac ↗ get_plugin_files()
get_plugin_files( mixed $plugin ) Gets a list of a plugin's files.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $plugin string | Path to the plugin file relative to the plugins directory. Required |
Return Value
(string[])
Array of file names relative to the plugin root.
Function Information
Since Version
2.8.0
Source File
wp-admin/includes/plugin.php
Advertisement