On this page
do_action( 'delete_plugin', string $plugin_file )
Fires immediately before a plugin deletion attempt.
Parameters
$plugin_filestring-
Path to the plugin file relative to the plugins directory.
Source
File: wp-admin/includes/plugin.php. View all references
do_action( 'delete_plugin', $plugin_file );
Related
Used By
| Used By | Description |
|---|---|
| delete_plugins() wp-admin/includes/plugin.php | Removes directory and files of a plugin for a list of plugins. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/delete_plugin