WooCommerce Product Data Tabs Not Working
The Product data box hides tabs on purpose, by product type and by the Virtual checkbox, and a hidden tab looks exactly like a broken one. Here is what each class does, how the script decides, and how to tell a rule from a fault.
Quick fix: if the Product type dropdown is missing from the Product data header, the admin script failed and every tab is dead; if the dropdown is there, the missing tab is almost always hidden on purpose by its show_if_ / hide_if_ class for the product type or the Virtual checkbox you have selected.
Which "tabs" do you mean?
Three different things share the name, and each has its own code:
| Where you see them | What builds them | Typical failure |
|---|---|---|
| Product data box on the product edit screen (General, Inventory, Shipping…) | woocommerce_product_data_tabs filter + one jQuery script |
Tab hidden for the type, or the script died |
| Tabs under the summary on a classic theme (Description, Additional information, Reviews) | woocommerce_product_tabs filter + tabs.php template |
Tab has no content, or the front-end script did not run |
| Product Details block on a block theme | Same filter, but rendered by the block | Filter edits ignored once the block uses inner blocks |
The new block-based product editor is not a fourth option any more: WooCommerce removed it in 11.0.0 with no replacement, so every product is edited on the classic screen and the Product data box is the only place these admin tabs live.
The Product data tabs and their rules
These are the defaults WooCommerce registers, with the classes that decide visibility:
| Tab | Classes | Hidden when |
|---|---|---|
| General | hide_if_grouped |
Grouped product |
| Inventory | show_if_simple, show_if_variable, show_if_grouped, show_if_external |
Any other (custom) product type |
| Shipping | hide_if_virtual, hide_if_grouped, hide_if_external |
Virtual ticked, Grouped, External/Affiliate |
| Linked Products | none | Never |
| Attributes | none | Never |
| Variations | show_if_variable |
Anything but Variable product |
| Advanced | none | Never |
The script that applies them runs on page load and again whenever you change the product type or tick Virtual or Downloadable. Three details explain most "it's broken" reports:
- Hide beats show. Every
show_if_element is hidden first, then the matching ones are shown, then thehide_if_rules run last. A tab with bothshow_if_simpleandhide_if_virtualdisappears on a virtual simple product. - Empty panels take their tab with them. After applying the classes, the script looks inside every panel. If all of a panel's
options_groupblocks are hidden, the tab itself is hidden, even if the tab has no classes at all. A custom tab whose fields are all markedshow_if_simplevanishes on variable products for this reason. - Ticking Virtual while you are on Shipping sends you to General. Intended, not a crash.
Symptom → cause → check
| Symptom | Actual cause | How to check |
|---|---|---|
| No Product type dropdown in the header; clicking a tab only jumps the page | Admin JavaScript stopped before the product script ran | Browser console on the edit screen, first red error |
| Shipping tab gone | Virtual ticked, or type is Grouped/External | Untick Virtual; tab returns without saving |
| Inventory gone on a plugin's product type | Tab is whitelisted per type | Plugin must add show_if_{type} |
| Custom tab shows, but its fields appear under every tab | Panel div lacks the panel class, so switching never hides it |
Inspect the panel markup |
| Custom tab clicks, nothing appears | target does not match the panel id, or the id is not a valid CSS selector |
Compare the tab's href with the panel id |
| Custom tab vanishes on some types only | All its options_group blocks are hidden there |
Check the field wrappers' classes |
The dropdown test works because the Product type select and the Virtual/Downloadable checkboxes are printed hidden inside the box and moved into its header by the same script that runs the tabs. If they are not in the header, nothing else on the screen is being managed either. Usual culprits: another plugin's script erroring on that screen, a jQuery is not defined failure, or an optimiser processing wp-admin scripts. Isolate the plugin as in fixing plugin conflicts.

A custom tab that behaves
Both halves are needed: the tab from the filter and the panel from the woocommerce_product_data_panels action.
add_filter( 'woocommerce_product_data_tabs', function ( $tabs ) {
$tabs['ti_care'] = array(
'label' => __( 'Care guide', 'ti' ),
'target' => 'ti_care_data',
'class' => array( 'show_if_simple', 'show_if_variable' ),
'priority' => 65,
);
return $tabs;
} );
add_action( 'woocommerce_product_data_panels', function () {
echo '<div id="ti_care_data" class="panel woocommerce_options_panel hidden">';
echo '<div class="options_group">';
woocommerce_wp_textarea_input( array(
'id' => '_ti_care',
'label' => __( 'Care instructions', 'ti' ),
) );
echo '</div></div>';
} );
target must equal the panel id exactly, and the panel needs panel woocommerce_options_panel. Saving the field is a separate job, normally done on woocommerce_admin_process_product_object. Priority places the tab between the defaults, which run 10 to 70 in steps of ten.
The front-end tabs
If the problem is on the product page rather than in the editor, the three default tabs are conditional, and each condition is checked on the product itself:
- Description appears only if the main product description (the big editor, not the short description) has content.
- Additional information appears only if at least one attribute has Visible on the product page ticked, or the product has a weight or dimensions. An attribute with only Used for variations ticked does not count.
- Reviews needs Enable product reviews under WooCommerce → Settings → Products and Enable reviews in the product's Advanced tab.
When all panels render stacked, the markup is fine and the single-product script did not run: it is what hides the inactive panels on load. Look for the first console error, and exclude that script from delay or combine settings. Unstyled tabs are a stylesheet problem instead — see WordPress CSS not loading.
On a classic theme with an override of single-product/tabs/tabs.php, open WooCommerce → Status and read Overrides. A line saying "Version … is out of date. The core version is 9.8.0" means your theme still prints an older tabs layout.
On a block theme, tabs come from the Product Details block. The version in WooCommerce's default Single Product template renders the classic tabs and honours woocommerce_product_tabs fully. A Product Details block inserted fresh in the Site Editor is built from inner accordion blocks instead: Description, specifications and reviews come from those blocks, so unsetting a default tab in the filter changes nothing, while custom tabs you add through the filter are appended as extra accordion items. Adding and removing tabs in code is covered in woocommerce_product_tabs.
Verify
Check four products: simple, simple with Virtual ticked, variable, and one with reviews closed. Tabs are conditional, so one product proves little. If it is the summary column above the tabs that is wrong, see woocommerce_single_product_summary; if products are missing from the shop entirely, that is a different fault, covered in products not showing.
Frequently asked
- The Shipping tab carries the classes hide_if_virtual, hide_if_grouped and hide_if_external. Tick Virtual on a simple product, or switch the type to Grouped or External/Affiliate, and the tab is hidden by design. Untick Virtual and it comes back immediately, without saving.
- The Inventory tab is whitelisted, not blacklisted: it only shows for show_if_simple, show_if_variable, show_if_grouped and show_if_external. A custom type needs its own show_if_yourtype class added to the inventory tab through the woocommerce_product_data_tabs filter, and to the inventory fields it should use.
- Those are the front-end tabs, not Product data. The panels are printed in full and the WooCommerce single-product script hides the inactive ones when it initialises. If every panel shows, that script did not run: check the browser console and any optimiser that delays or combines scripts.