Created
February 25, 2019 09:38
-
-
Save leewillis77/b44f85f47cdfb5fb78756df2c1d7c3a4 to your computer and use it in GitHub Desktop.
Example of modifying image links sent in Google Product Feed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_gpf_feed_item_google', function( $feed_item, $product ) { | |
// Modify $feed_item->image_link and/or $feed_item->additional_images here. | |
return $feed_item; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment