jetpack_activate_module_<module>
Fires when a module is activated.
Description
The dynamic part of the filter, $module
, is the module slug.
Parameters (1)
- 0. $module (string)
- Module slug.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'jetpack_activate_module_{$module}', $module );
- The following example is for adding a hook callback.
- // define the jetpack_activate_module_<module> callback
- function action_jetpack_activate_module_module( $module ) {
- // make action magic happen here...
- };
- // add the action
- add_action( "jetpack_activate_module_{$module}", 'action_jetpack_activate_module_module', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( "jetpack_activate_module_{$module}", 'action_jetpack_activate_module_module', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /class.jetpack.php
- do_action( "jetpack_activate_module_$module", $module );