Guest User

Untitled

a guest
Oct 16th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. <?php
  2.  
  3. function lw_woocommerce_gpf_feed_item_google( $feed_item, $product ) {
  4. // If you need to modify the prices sent in the feed, you can modify the following
  5. // properties of the feed_item object.
  6. // $feed_item->sale_price_ex_tax
  7. // $feed_item->sale_price_inc_tax
  8. // $feed_item->regular_price_ex_tax
  9. // $feed_item->regular_price_inc_tax
  10. return $feed_item;
  11. }
  12. add_filter( 'woocommerce_gpf_feed_item_google', 'lw_woocommerce_gpf_feed_item_google', 10, 2 );
Add Comment
Please, Sign In to add comment