Description
Filter the string of attachment ids for the WooCommerce product gallery meta value.
Usage
apply_filters(
'wp_data_sync_gallery_image_ids'
,
$attach_ids
);
Parameters
$attach_ids | array | Array of attachment ids |
Code Example
add_filter(
'wp_data_sync_gallery_image_ids',
function
(
$attach_ids
) {
//Do cool stuff here!!
return
$attach_ids
;
), 10, 1 );
Contact us if you need a code example for this hook. We are happy to review your request.