add_option_jetpack_update_details

Fires whenever the amount of updates needed for a site changes.

Description

do_action( 'add_option_jetpack_update_details', (string) $jetpack_update_details, $jetpack ); 

Syncs an array of core, theme, and plugin data, and which of each is out of date

Parameters (2)

0. $jetpack_update_details (string) => 'jetpack_update_details'
The jetpack update details.
1. $jetpack
Update details calculated by Jetpack::get_update_details

Usage

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

Defined (1)

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

/class.jetpack.php  
  1. do_action( 'add_option_jetpack_update_details', 'jetpack_update_details', Jetpack::get_update_details() );