jetpack_deactivate_module
The WordPress Core jetpack deactivate module hook.
Description
Parameters (3)
- 0. $array (array) =>
array( __CLASS__, 'track_deactivate_module')
- The array.
- 1. $int (int) =>
1
- The int.
- 2. $int (int) =>
1
- The int.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'jetpack_deactivate_module', $array, $int, $int );
- The following example is for adding a hook callback.
- // define the jetpack_deactivate_module callback
- function action_jetpack_deactivate_module( $array, $int, $int ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'jetpack_deactivate_module', 'action_jetpack_deactivate_module', 10, 3 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'jetpack_deactivate_module', 'action_jetpack_deactivate_module', 10, 3 );
Defined (3)
The action is defined in the following location(s).
- /class.jetpack-tracks.php
- add_action( 'jetpack_deactivate_module', array( __CLASS__, 'track_deactivate_module'), 1, 1 );
- /class.jetpack.php
- do_action( 'jetpack_deactivate_module', $module, $success );
- /sync/class.jetpack-sync-listener.php
- add_action( 'jetpack_deactivate_module', $handler );