uninstall_plugin
uninstall_plugin ( $plugin )
Parameters:- (string) plugin Path to the plugin file relative to the plugins directory.
Returns:- (true|void) True if a plugin's uninstall.php file has been found and included. Void otherwise.
Defined at: - Introduced in WordPress: 2.7.0
- Deprecated in WordPress: —
Description
Uninstalls a single plugin.Calls the uninstall hook, if it is available.