Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function lw_woocommerce_gpf_feed_item_google( $feed_item, $product ) {
- // If you need to modify the prices sent in the feed, you can modify the following
- // properties of the feed_item object.
- // $feed_item->sale_price_ex_tax
- // $feed_item->sale_price_inc_tax
- // $feed_item->regular_price_ex_tax
- // $feed_item->regular_price_inc_tax
- return $feed_item;
- }
- add_filter( 'woocommerce_gpf_feed_item_google', 'lw_woocommerce_gpf_feed_item_google', 10, 2 );
Add Comment
Please, Sign In to add comment