Created
April 25, 2018 13:59
-
-
Save leewillis77/0371a8307535ada0a321147e7617c432 to your computer and use it in GitHub Desktop.
Remove all shipping dimensions 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_gpf_remove_shipping_attrs($elements, $product_id) { | |
unset($elements['shipping_width']); | |
unset($elements['shipping_length']); | |
unset($elements['shipping_height']); | |
return $elements; | |
} | |
add_filter( 'woocommerce_gpf_elements_google', 'lw_gpf_remove_shipping_attrs', 11, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment