jetpack_before_activate_default_modules

Fires before default modules are activated.

Description

do_action( 'jetpack_before_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.
  1. // run the action 
  2. do_action( 'jetpack_before_activate_default_modules', $min_version, $max_version, $other_modules ); 
The following example is for adding a hook callback.
  1. // define the jetpack_before_activate_default_modules callback 
  2. function action_jetpack_before_activate_default_modules( $min_version, $max_version, $other_modules ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'jetpack_before_activate_default_modules', 'action_jetpack_before_activate_default_modules', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'jetpack_before_activate_default_modules', 'action_jetpack_before_activate_default_modules', 10, 3 ); 

Defined (1)

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

/class.jetpack.php  
  1. do_action( 'jetpack_before_activate_default_modules', $min_version, $max_version, $other_modules );