-
-
Save leewillis77/96b01e82d9e668300d10d257838d20ec to your computer and use it in GitHub Desktop.
Modify the g:ID element in WooCommerce Google Product Feed extension
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 | |
function lw_woocommerce_gpf_feed_item_google( $feed_item, $product ) { | |
// Modify $feed_item->guid here. | |
// Note, you may also need to update $feed_item->item_group_id if you have variable products. | |
return $feed_item; | |
} | |
add_filter( 'woocommerce_gpf_feed_item_google', 'lw_woocommerce_gpf_feed_item_google', 11, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment