Skip to content

Instantly share code, notes, and snippets.

@rynaldos-zz
Created February 6, 2017 10:48
Show Gist options
  • Save rynaldos-zz/9e7f5c86453e09c2c24589580e75a575 to your computer and use it in GitHub Desktop.
Save rynaldos-zz/9e7f5c86453e09c2c24589580e75a575 to your computer and use it in GitHub Desktop.
[WooCommerce] Hide weight / dimensions in single product's additional information tab
add_filter( 'wc_product_enable_dimensions_display', '__return_false' );
@khvoroffski
Copy link

If only weight

add_filter( 'woocommerce_product_get_weight' , '__return_false' );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment