WooCommerce : How to Remove Product Tabs on Product page.


Remove product tabs in WooCommerce Product page.

This post is regarding how we can add custom tabs on a product page on the front-end.
These tabs are additional to the default ‘Description’, ‘Reviews’ and ‘Additional information’ tabs that are available by default.

The default tabs in WooCommerce have the following priorities:

  • Description 10
  • Additional information 20
  • Reviews 30

The 'woocommerce_product_tabs' filter provided by WooCommerce should be used for removing tabs on single product page in WooCommerce. The code should be added to the functions.php file of your theme.

Before
function RemoveReviewsTab( $tabs ) { 
  unset( $tabs['additional_information'] );
  unset( $tabs['description'] );
  unset( $tabs['reviews'] );
  return $tabs;
}
add_filter('woocommerce_product_tabs','RemoveReviewsTab');
After

Enjoy

, ,

Leave a Reply

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