Skip to content

Instantly share code, notes, and snippets.

@chrdesigner
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrdesigner/2ce8d0d54f51bc520fbc to your computer and use it in GitHub Desktop.
Save chrdesigner/2ce8d0d54f51bc520fbc to your computer and use it in GitHub Desktop.
WooCommerce - Additional Information tab
<?php
//Hide dimensions in Additional Information tab
add_filter( 'wc_product_enable_dimensions_display', '__return_false' );
//Hide Additional Information tab
function custom_woocommerce_product_tabs( $tabs ) {
if ( isset( $tabs['additional_information'] ) ) {
unset( $tabs['additional_information'] );
}
return $tabs;
}
add_filter( 'woocommerce_product_tabs', 'custom_woocommerce_product_tabs' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment