How to remove woocommerce tab?

How to remove woocommerce tab?

  1. Blog
  2. 15 November 2026
  3. 3 min read

Stefan Bogdanescu

Founder & Senior Architect

How to Remove WooCommerce Product Tabs Without Editing Core Files

By default, WooCommerce wraps product descriptions in a tab interface. This is a legacy design choice that assumes every product will have multiple data sections—tabs like "Additional Information," "Reviews," and "Product Gallery"—to organize content. When you only have one section, the tab mechanism adds unnecessary visual weight to the page layout.

Many developers prefer to remove the tab container entirely while retaining the product description box below it. The challenge is achieving this modification without touching the core woocommerce template files. Direct edits to core files are bad practice; they are overwritten on every plugin or theme update, wiping out your customizations instantly. Instead, you should leverage WordPress hooks and filters to manipulate the output before it renders.

The mechanism controlling these tabs relies on the woocommerce_default_product_tabs filter. This filter exists in the core WooCommerce codebase and is responsible for populating the $tabs array. By hooking into this filter within your theme's functions.php file, you can intercept the tab generation process and selectively strip out unwanted elements.

To remove the Description tab specifically, while keeping its content accessible via a different method or simply letting it render outside the tab structure requires careful consideration. However, the standard approach to removing the entire tab UI (the title and the box wrapper) while still displaying the description text involves unregistering the specific tab entry from the global array passed to the shortcode.

Here is how you can implement this using a filter in your functions.php file:

add_filter( 'woocommerce_default_product_tabs', 'remove_woocommerce_product_tabs' );

function remove_woocommerce_product_tabs( $tabs ) {
    // Unset the description tab from the array
    unset( $tabs[ 'description' ] );
    
    // If you have other tabs like 'Additional Information', ensure you don't unset them unintentionally.
    // You can keep the others by not touching them in this function, or explicitly removing only what you want.
    
    return $tabs;
}

This code snippet hooks into the filter exactly where WooCommerce expects the tab definitions. By using unset(), you remove the definition of the 'description' tab from the array. When the rendering logic runs, it checks this array for tabs to display. If a tab is missing from the array, the corresponding HTML wrapper (the <ul> list and the individual content boxes) is not generated.

Crucial Technical Detail:
You must verify where your product description is currently being output. In standard WooCommerce setups, the description is output inside the tab wrapper defined by the woocommerce_product_description_tab callback. If you remove the tab definition but the description is hardcoded elsewhere (which it usually isn't in default themes), you might end up with a missing description.

In most default themes, removing the tab via this filter will hide the description entirely because the content lives inside that tab's container. To keep the description visible without the tab UI, you typically need to ensure the description is output directly in your theme template file (e.g., single-product.php) outside of the loop that generates tabs, or rely on a specific theme modification that outputs the content independently.

If your goal is strictly to remove the "Description" tab title and container but keep the text visible, simply unsetting the tab often hides the text too. The robust solution without editing core files usually involves finding where the description is rendered in your specific child theme's single-product.php template and ensuring it outputs outside the loop that generates the tabs, or using a snippet that re-registers the content without the tab wrapper logic.

However, if you are satisfied with simply removing the tab structure and accepting that the description follows suit (or if you have moved the description output to a different location in your template), the unset method is the cleanest way to do it. It respects WordPress best practices by keeping core files untouched and ensuring your changes survive updates.

Always remember to wrap your code in a function scope and return the modified array. Failing to return $tabs will break the filter contract, potentially causing PHP notices or unexpected behavior in the front end.

Our network