# Removing options from the product data panel in WooCommerce

> The WooCommerce product editor can feel cluttered when you only sell simple products. Here's the filter that hides tabs like Inventory, Shipping, and Linked Products from the Product data box.

Published: 2023-04-05T07:35:43.000Z
Updated: 2026-04-24T10:00:00.000Z
Author: Shameem Reza
Category: WordPress
Canonical: https://shameemreza.com/removing-options-from-the-product-data-panel-in-woocommerce/

---

import Tldr from '../../components/Tldr.astro';

The Product data box in the WooCommerce product editor ships with seven tabs by default. If you're selling digital products, one-off services, or a small catalog where nothing ever ships and nothing ever links to anything else, most of those tabs are just visual noise. The `woocommerce_product_data_tabs` filter lets you remove the ones you don't use.

<Tldr>
  Hook the `woocommerce_product_data_tabs` filter and `unset()` the tabs you don't need by key. The keys are `general`, `inventory`, `shipping`, `linked_product`, `attribute`, `variations`, and `advanced`. Drop the snippet into a child theme's `functions.php` or a code snippets plugin. To hide marketplace suggestions from the product screen, either uncheck "Display suggestions within WooCommerce" under **WooCommerce → Settings → Advanced → WooCommerce.com**, or filter `woocommerce_allow_marketplace_suggestions` to `__return_false`.
</Tldr>

## Remove tabs with a filter

The `woocommerce_product_data_tabs` filter receives the full array of tab definitions. Unsetting a key removes that tab from the UI entirely.

```php
add_filter( 'woocommerce_product_data_tabs', 'shameem_remove_product_data_tabs' );
function shameem_remove_product_data_tabs( $tabs ) {
    // Uncomment the lines for any tabs you want to hide.
    // unset( $tabs['general'] );
    unset( $tabs['inventory'] );
    unset( $tabs['shipping'] );
    unset( $tabs['linked_product'] );
    // unset( $tabs['attribute'] );
    // unset( $tabs['variations'] );
    // unset( $tabs['advanced'] );
    return $tabs;
}
```

Save it as a new snippet in the [Code Snippets](https://wordpress.org/plugins/code-snippets/) plugin, or paste it into your child theme's `functions.php`. Don't edit the parent theme, the change will disappear the next time the theme updates.

Open any product and the tabs you unset are gone:

![WooCommerce product data panel with tabs removed](/uploads/woocommerce-product-panel-option-1024x289.png)

## Hide marketplace suggestions on the product screen

The "Get more options" block that appears on the product screen is a marketplace upsell. You can turn it off in settings without touching code. Go to **WooCommerce → Settings → Advanced → WooCommerce.com** and uncheck **Display suggestions within WooCommerce**.

![Toggle to disable WooCommerce marketplace suggestions in settings](/uploads/disable-woocomemrce-suggestion-1024x600.png)

If you'd rather enforce it in code so it stays off across deploys, add this one-liner to the same snippet file:

```php
add_filter( 'woocommerce_allow_marketplace_suggestions', '__return_false' );
```

Both approaches do the same thing. The setting is easier for a single site. The filter is safer for a multi-site or client workflow where you don't want someone re-enabling it by accident.

Each of these snippets is safe to drop into a child theme or the Code Snippets plugin. Remove them the same way if you change your mind later.
