This hook is run immediately after any plugin is deactivated, and may be used to detect the deactivation of other plugins.
function detect_plugin_deactivation( $plugin, $network_activation ) { // do stuff } add_action( 'deactivated_plugin', 'detect_plugin_deactivation', 10, 2 );