uninstall_(file)
Fires in uninstall_plugin() once the plugin has been uninstalled.
The action concatenates the 'uninstall_' prefix with the basename of the plugin passed to uninstall_plugin() to create a dynamically-named action.
Usage
add_action( 'uninstall_(file)', 'wp_kama_uninstall_file_action' ); /** * Function for `uninstall_(file)` action-hook. * * @return void */ function wp_kama_uninstall_file_action(){ // action... }
Changelog
Since 2.7.0 | Introduced. |
Where the hook is called
uninstall_(file)
wp-admin/includes/plugin.php 1338
do_action( "uninstall_{$file}" );
Where the hook is used in WordPress
wp-admin/includes/plugin.php 1328
add_action( "uninstall_{$file}", $callable );