deactivated_plugin

Fires after a plugin is deactivated.

Description

do_action( 'deactivated_plugin', (unknown) $w3tc_file ); 

Parameters (1)

0. $w3tc_file (unknown) => W3TC_FILE
The w3tc file.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'deactivated_plugin', $w3tc_file ); 
The following example is for adding a hook callback.
  1. // define the deactivated_plugin callback 
  2. function action_deactivated_plugin( $w3tc_file ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'deactivated_plugin', 'action_deactivated_plugin', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'deactivated_plugin', 'action_deactivated_plugin', 10, 1 ); 

Defined (1)

The action is defined in the following location(s).

/Util_Activation.php  
  1. do_action( 'deactivated_plugin', W3TC_FILE );