updating_jetpack_version

Fires on update, before bumping version numbers up to a new version.

Description

do_action( 'updating_jetpack_version', (string) $version, (bool) $false ); 

Parameters (2)

0. $version (string)
Jetpack version number.
1. $false (bool)
False Does an old version exist. Default is false.

Usage

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

Defined (5)

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

/class.jetpack.php  
  1. do_action( 'updating_jetpack_version', $version, false ); 
  1. do_action( 'updating_jetpack_version', $version, false ); 
  1. do_action( 'updating_jetpack_version', $version, false ); 
  1. do_action( 'updating_jetpack_version', $new_version, $jetpack_old_version ); 
  1. do_action( 'updating_jetpack_version', $version, false );