Core Function
View Source on Trac ↗ uninstall_plugin()
uninstall_plugin( mixed $plugin ) Uninstalls a single plugin.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $plugin string | Path to the plugin file relative to the plugins directory. Required |
Return Value
((true)
(true | void) True if a plugin's uninstall.php file has been found and included.
Void otherwise.
Function Information
Since Version
2.7.0
Source File
wp-admin/includes/plugin.php
Advertisement