Remove product tab on a single product in WooCommerce

This Tab is needed to add additional information to the product so, no information… means no tab. In the below image you can see all the default tabs present in the single product. But what if your customer does not require these tabs to be displayed.

Before applying snippet

Here is the simple snippet which helps to remove the tabs from the single product page. Add the following to the function.php in your child theme.

// remove product tab on single product page

function wps_remove_additional_information( $tabs ) {

    unset( $tabs['additional_information'] );
    return $tabs;

}

add_filter( 'woocommerce_product_tabs', 'wps_remove_additional_information', 98 );

With the help of this function, you can remove both descriptions as well as the review tab. So if you want to remove one more line, change additional_information to “description” or “reviews”.

After applying snippet

Edit WooCommerce Products from Frontend

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top