Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | function receive( $data ) { |
||
22 | $events = $this->codec->decode( $data ); |
||
23 | foreach ( $events as $event ) { |
||
24 | list( $action_name, $args ) = $event; |
||
25 | /** |
||
26 | * Fires when an action is received from a remote Jetpack site |
||
27 | * |
||
28 | * @since 4.1 |
||
29 | * |
||
30 | * @param string $action_name The name of the action executed on the remote site |
||
31 | * @param array $args The arguments passed to the action |
||
32 | */ |
||
33 | do_action( "jetpack_sync_remote_action", $action_name, $args ); |
||
34 | } |
||
35 | } |
||
36 | } |