jetpack_client_authorized
Fires after the Jetpack client is authorized to communicate with WordPress.com.
Description
Parameters (1)
- 0. $jetpack_options (int) =>
Jetpack_Options::get_option( 'id' )
- The jetpack options.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'jetpack_client_authorized', $jetpack_options );
- The following example is for adding a hook callback.
- // define the jetpack_client_authorized callback
- function action_jetpack_client_authorized( $jetpack_options ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'jetpack_client_authorized', 'action_jetpack_client_authorized', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- 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
- do_action( 'jetpack_client_authorized', Jetpack_Options::get_option( 'id' ) );
- /sync/class.jetpack-sync-actions.php
- add_action( 'jetpack_client_authorized', array( __CLASS__, 'do_full_sync' ), 10, 0 );