Description
Fires after the data sync is complete. This is the last hook before returning the response to the API.
Usage
add_action(
'wp_data_sync_after_process'
,
'my_after_process'
, 10, 2
);
Parameters
$post_id
int
WordPress post ID
$data_sync
object
DataSync object
Code Example
add_action(
'wp_data_sync_after_process'
,
'my_after_process'
, 10, 2
);
function
my_after_process
(
$post_id
,
$data_sync
) {
//Do cool stuff here!!
}
Contact us if you need a better code example for this hook. We are happy to write one for you.