Hide tabs in the WooCommerce Product data panel

Hide tabs like Inventory, Shipping, and Linked Products from the WooCommerce Product data box with one filter, and turn off marketplace suggestions.

Tested withWordPress 7.1.4WooCommerce 11.2.1

On this page
  1. Remove tabs with a filter
  2. Hide marketplace suggestions on the product screen

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.

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 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

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

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, next to other product screen tweaks like turning on product revisions. Remove them the same way if you change your mind later.

Did this fix work on your site?

If it didn't, tell me what happened. I re-test reported fixes and update the post.

Tell me what didn't work

Shameem Reza

Shameem Reza Happiness Engineer at Automattic

I fix WooCommerce problems for a living and review plugins for WordPress.org. Every fix here is tested on a clean site first.

No comments yet. Ask the first question.

No account needed. Comments appear after a quick check.