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
Remove tabs from a classic product layout
If your product page uses classic WooCommerce tabs, including the legacy tab layout inside a Product Details block, use the woocommerce_product_tabs filter. In HoverCraft, the Additional Information tab may be labeled Product Specs, but its key remains additional_information, as noted in the WooCommerce Product Pages documentation.
- Back up your site and test the change on staging before editing PHP.
- Open
wp-content/themes/your-child-theme/functions.phpin your active child theme. If you need a child theme, follow Child Themes first. Do not edit the parent theme, because updates can overwrite your changes. Alternatively, use a code-snippet plugin to run the same PHP without editing theme files; that requires maintaining an extra plugin. - Paste the snippet inside the existing PHP code without adding another
<?phptag. Replacemyshopin both places with a prefix unique to your site. - Save the change, then check product pages with descriptions, 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 as well, delete the leading // from the relevant unset() line. To keep Additional Information, delete its unset() line instead.
Removing a tab does not delete product descriptions, attributes, or reviews, but it can make that information inaccessible to shoppers. Keep important details visible elsewhere. Removing the Reviews tab does not disable customer reviews; use WooCommerce's review settings if you need to disable them.
Remove sections from an editable block layout
For a block theme, open Appearance → Editor → Templates → Single Product and inspect the Product Details block in List View. If it contains editable accordion items for the description, specifications, or reviews, remove the unwanted item and save the template. The PHP snippet above does not remove these built-in blocks.
If Product Details has no accordion child blocks and instead renders classic tabs, the PHP filter can still work. Choose the method based on the actual product layout, not simply whether the theme is a block theme. WooCommerce explains both versions in its product page theming documentation. If the template is locked, check the theme's instructions before changing its structure.
If a tab still appears
First confirm that your active child theme or code-snippet plugin loads the PHP, then clear any relevant page cache. Check whether the page uses editable accordion items instead of classic tabs. A theme or extension can also add or restore tabs through its own code; the snippet above targets only WooCommerce's three standard tab keys, so custom tabs may need different handling.
Do not hide tabs with CSS as a substitute for removing them. The underlying markup and content can remain on the page even when they are visually hidden.