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
- Introduced in Jetpack 1.6.3