Description
Fires after the product gallery is processed and inserted as post meta.
Usage
add_action(
'wp_data_sync_product_gallery'
,
'my_product_gallery'
, 10, 2
);
Parameters
$post_id
int
The WordPress post ID
$product_gallery
array
The product gallery data array
Code Example
add_action(
'wp_data_sync_product_gallery'
,
'my_product_gallery'
, 10, 2
);
function
my_product_gallery
(
$post_id
,
$product_gallery
) {
//Do cool stuff here!!
}
Contact us if you need a better code example for this hook. We are happy to write one for you.