jetpack_sync_remote_actions

Fires when an array of actions are received from a remote Jetpack site.

Description

do_action( 'jetpack_sync_remote_actions', (unknown) $events, (unknown) $token ); 

Parameters (2)

0. $events (unknown)
The events.
1. $token (unknown)
The token.

Usage

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

Defined (1)

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

/sync/class.jetpack-sync-server.php  
  1. do_action( 'jetpack_sync_remote_actions', $events, $token );