jetpack_sync_remote_actions
Fires when an array of actions are received from a remote Jetpack site.
Description
Parameters (2)
- 0. $events (unknown)
- The events.
- 1. $token (unknown)
- The token.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'jetpack_sync_remote_actions', $events, $token );
- The following example is for adding a hook callback.
- // define the jetpack_sync_remote_actions callback
- function action_jetpack_sync_remote_actions( $events, $token ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'jetpack_sync_remote_actions', 'action_jetpack_sync_remote_actions', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the action
- 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
- do_action( 'jetpack_sync_remote_actions', $events, $token );