jetpack_activate_default_modules
Fires when default modules are activated.
Description
do_action( 'jetpack_activate_default_modules', (string) $min_version, (string) $max_version, (array) $other_modules );
Parameters (3)
- 0. $min_version (string)
- Minimum version number required to use modules.
- 1. $max_version (string)
- Maximum version number required to use modules.
- 2. $other_modules (array)
- Array of other modules to activate alongside the default modules.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'jetpack_activate_default_modules', $min_version, $max_version, $other_modules );
- The following example is for adding a hook callback.
- // define the jetpack_activate_default_modules callback
- function action_jetpack_activate_default_modules( $min_version, $max_version, $other_modules ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'jetpack_activate_default_modules', 'action_jetpack_activate_default_modules', 10, 3 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'jetpack_activate_default_modules', 'action_jetpack_activate_default_modules', 10, 3 );
Defined (1)
The action is defined in the following location(s).
- /class.jetpack.php
- do_action( 'jetpack_activate_default_modules', $min_version, $max_version, $other_modules );