In this article

filter

jetpack_sync_send_data

Fires when data is ready to send to the server.Return false or WP_Error to abort the sync (e.g. if there’s an error) The items will be automatically re-sent later

Parameters

$data
array

The action buffer

$codec
string

The codec name used to encode the data

$time
double

The current time

$queue
string

The queue used to send ('sync' or 'full_sync')

$checkout_duration
float

The duration of the checkout operation.

$preprocess_duration
float

The duration of the pre-process operation.

$queue_size
int

The size of the sync queue at the time of processing.

Changelog

How to use this hook

See “How to use actions and filters to customize Jetpack”.