jetpack_client_authorized

Fires after the Jetpack client is authorized to communicate with WordPress.com.

Description

do_action( 'jetpack_client_authorized', (int) $jetpack_options ); 

Parameters (1)

0. $jetpack_options (int) => Jetpack_Options::get_option( 'id' )
The jetpack options.

Usage

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

Defined (2)

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

/class.jetpack-client-server.php  
  1. do_action( 'jetpack_client_authorized', Jetpack_Options::get_option( 'id' ) ); 
/sync/class.jetpack-sync-actions.php  
  1. add_action( 'jetpack_client_authorized', array( __CLASS__, 'do_full_sync' ), 10, 0 );