Description
Filter the URL of a gallery image
Usage
apply_filters( 'wp_data_sync_gallery_image', Image_url, Product ID );
Parameters
Image_url | string | URL of gallery image | Product ID | int | WP Post ID |
Code Example
add_filter( 'wp_data_sync_gallery_image', function( Image_url, Product ID ) {
//Do cool stuff here!!
return Image_url;
), 10, 2 );
Contact us if you need a code example for this hook. We are happy to review your request.