Description
Fires just before the WooCommerce product attributes are saved as post meta.
Usage
add_filter(
'wp_data_sync_product_attributes'
,
'my_product_attributes'
, 10, 1
);
Parameters
$product_attributes
array
An array of product attributes
Code Example
add_filter(
'wp_data_sync_product_attributes'
,
'my_product_attributes'
, 10, 1
);
function
my_product_attributes
(
$product_attributes
) {
//Do cool stuff here!!
return
$product_attributes
;
}
Contact us if you need a better code example for this hook. We are happy to write one for you.