Skip to content

Instantly share code, notes, and snippets.


leewillis77/functions.php Secret

Created Oct 26, 2017
What would you like to do?
Shows how to modify the product link in the WooCommerce Google Product Feed extension
function lw_woocommerce_gpf_feed_item_google( $feed_item, $product ) {
// Modify $feed_item->purchase_link here.
return $feed_item;
add_filter( 'woocommerce_gpf_feed_item_google', 'lw_woocommerce_gpf_feed_item_google', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment