deactivated_plugin hook: get the name of the plugin
You can hook into the action ‘deactivate_plugin’ to get the plugin’s base name and (as second parameter) if it was deactivated network wide. See wp-admin/includes/plugin.php function deactivate_plugins(). There seems to be no hook for plugin deletion. Sample logging code: add_action( ‘activated_plugin’, ‘t5_plugin_logger’, 10, 2 ); add_action( ‘deactivated_plugin’, ‘t5_plugin_logger’, 10, 2 ); /** * Log plugin … Read more