Tweaking Woocommerce:

The “Additional Information” tab which appears on all individual product pages in Woocommerce, to me, is a nuisance. It auto-populates product metadata which can be confusing to your buyers, particularly if you have already completely detailed your product.

Woocommerce Additional Information Tab

Here is the Code:

Copy and paste this code to your functions.php file. Please, use a Child Theme!

//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;
}
//Source: http://thewordpressguy.wwwssr12.supercp.com/

That’s all there is to it! Refresh your site and or delete your cache and you will see the “Additional Information” tab is no longer present!

Share This