How to Remove WooCommerce Product Tabs Without a Plugin

Remove the Description, Additional Information, or Reviews tab from WooCommerce product pages with a child-theme PHP snippet, without adding a plugin.

Last updated:

Reviewed for accuracy by Jesse Nickles

Check how your product page is built

Classic themes such as HoverCraft usually display product details in tabs below the summary. HoverCraft may label WooCommerce's Additional Information tab Product Specs, but its key remains additional_information; see WooCommerce Product Pages. The PHP method below applies to classic tabs and legacy Product Details layouts. Current block-theme layouts may use Product Details blocks or accordions instead. See WooCommerce's product tab documentation.

Remove tabs in a classic theme

  1. Back up your site and test the change on staging before editing PHP.
  2. Open wp-content/themes/your-child-theme/functions.php in your active child theme. If you do not have one, follow Child Themes first. Do not edit the parent theme's functions.php; its changes can disappear during updates.
  3. Paste the snippet below inside the existing PHP code, without adding another <?php tag. Replace myshop in both places with a prefix unique to your site.
  4. Save the file, then check several product pages, including products with attributes and reviews.
function myshop_remove_product_tabs( $tabs ) {
	unset( $tabs['additional_information'] );
	// unset( $tabs['description'] );
	// unset( $tabs['reviews'] );

	return $tabs;
}
add_filter( 'woocommerce_product_tabs', 'myshop_remove_product_tabs', 98 );

As written, the snippet removes only Additional Information. To remove Description or Reviews too, delete the leading // from the corresponding unset() line. Remove the Additional Information line if you want to keep that tab. The tab keys are description, additional_information, and reviews.

Removing tabs does not delete product descriptions, attributes, or reviews, but shoppers may no longer see that content. Keep essential information visible elsewhere. Removing the Reviews tab does not disable reviews globally; change the review settings separately if that is your goal.

For block themes, edit the product template

In a block theme, open Appearance → Editor → Templates → Single Product. Select the Product Details block or its accordion items and inspect the available controls. Where the template permits it, remove the unwanted item, save, and preview a product page. Some blocks may be locked or arranged differently by the theme; the classic PHP filter is not a universal substitute for editing current Product Details blocks. See WooCommerce's product page customization guide.

If the tab still appears

Avoid hiding the tabs with CSS when the goal is to remove them. CSS can leave the underlying markup and content in place. Use the appropriate WooCommerce filter or block-editor control for the layout your site actually uses.

Prefer not to edit PHP files? You can also run the same snippet using a code-snippet plugin such as Code Snippets or WPCode. This avoids editing your theme files, but requires installing and maintaining an additional plugin.