Created
April 30, 2018 14:14
-
-
Save leewillis77/8efe43edea7113080862f346073e3c1a to your computer and use it in GitHub Desktop.
Remove shipping weight from 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 | |
function lw_exclude_shipping_weight( $feed_item ) { | |
$feed_item->shipping_weight = null; | |
return $feed_item; | |
} | |
add_filter( 'woocommerce_gpf_feed_item_google', 'lw_exclude_shipping_weight' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment