witches brew

Showing the single result

//remove additonal info tab from products add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 ); function woo_remove_product_tabs( $tabs ) { global $product; if( $product->has_attributes() || $product->has_dimensions() || $product->has_weight() ) { unset( $tabs['additional_information'] ); } return $tabs; }