Want to know what WordPress Theme a site is using? Check Out Now!

How to Remove Data Tabs in WooCommerce Single Product Page?

Are you looking for a way to remove the tabs appearing at the bottom of your WooCommerce single product page?

By default, WooCommerce adds three tabs to display related product data. This includes a detailed description of the product, user reviews, and additional information (if any).

There are many scenarios when you find yourself in a situation where you want to remove these tabs.

You can use the below code to remove data tabs on the WooCommerce single product page.

/**
 * Remove Product Tab on WooCommerce Single Product Page. 
 */
function maverick_remove_woocommerce_single_product_tabs($tabs)
{
    // Remove the description tab
    unset( $tabs['description'] );
    
    // Remove the reviews tab
    unset( $tabs['reviews'] );
    
    // Remove the additional information tab
    unset( $tabs['additional_information'] );  
	
    return $tabs;
}

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

If you want to remove only the additional tab, remove the other two from the above code.

Leave a Reply

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