Description
Fires just before the post is inserted or updated.
Usage
add_action(
'wp_data_sync_before_post_data'
,
'my_before_post_data'
, 10, 1
);
Parameters
$post_object
array
Post object data array
Code Example
add_action(
'wp_data_sync_before_post_data'
,
'my_before_post_data'
, 10, 1
);
function
my_before_post_data
(
$post_object
) {
//Do cool stuff here!!
}
Contact us if you need a better code example for this hook. We are happy to write one for you.