Description
Fire after the post meta is processed.
Usage
add_action(
'wp_data_sync_post_meta'
,
'my_post_meta'
, 10, 2
);
Parameters
$post_id
int
The WordPress post ID
$post_meta
array
Post meta data array
Code Example
Insert geo location coordinates into custom database table.
add_action(
'wp_data_sync_post_meta'
,
'my_post_meta'
, 10, 2
);
function
my_post_meta
(
$post_id
,
$post_meta
) {
//Do cool stuff here!!
}
Contact us if you need a better code example for this hook. We are happy to write one for you.