Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove all shipping dimensions from Google Product Feed
<?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