Hide Categories and Products from Shop

Hide Categories and Products from Shop hides categories, tags, products and single variations from the customers you choose.

Requirements

  • WordPress 6.8 or newer
  • WooCommerce 10.0 or newer
  • PHP 7.4 or newer
  • Works with classic and block themes, the Cart and Checkout blocks, and High-Performance Order Storage.

Installation

  1. Download hide-categories-products-from-shop.zip from My account > Downloads.
  2. In WordPress, go to Plugins > Add New Plugin > Upload Plugin, choose the zip file and click Install Now.
  3. Click Activate. The rules are in WooCommerce > Settings > Hide from shop, and the options in its Where and how section. Each product has a Visibility tab in Product data, and each variation its own fields.

Quick start

  1. Activate the plugin. Nothing is hidden until you choose.
  2. Go to WooCommerce > Settings > Hide from shop and add a rule: what to hide, how, and who from.
  3. To hide one product, open it and go to Product data > Visibility.
  4. To hide one variation, open it in Product data > Variations and choose how and who from.
  5. Under Where and how, choose where hidden items leave and where closed pages go.

Rules

Each rule hides categories (with their subcategories and products), tags, chosen products, or variations with chosen attribute values, from everyone, guests, logged-in customers, chosen roles or everyone except chosen roles. Rules can run between two dates. Something is hidden when any rule or its own setting hides it.

Rules.
Rules.

From shop lists, everywhere, or not for sale

From shop lists: the item leaves the shop, category and tag pages, search, related products, up-sells, cross-sells, product blocks, shortcodes, widgets and menus, but its page still opens by link. Everywhere: its page closes too. Shown, not for sale: it stays in the shop without an Add to cart button.

A product’s Visibility tab.
A product’s Visibility tab.

Variations

A variation can be left out of the options or greyed out. Option values that only hidden variations have leave the dropdown, price ranges count only the variations the customer can choose, and a product whose variations are all hidden leaves the lists.

A variation’s fields.
A variation’s fields.

Where and how

Choose whether hidden items also leave search results, related products, category and tag lists, and menus, and where someone goes when they open a page hidden from them: the not found page, the shop with a message, a page or a web address.

Where and how.
Where and how.

Store staff and the products list

Admins and shop managers see hidden items, with a notice saying who they’re hidden from. The products list says what hides each product, and bulk edit hides many at once.

The products list.
The products list.

Settings

SettingWhat it does
RulesWhat to hide, how, who from and when.
Hidden items leaveSearch results, related products, category and tag lists, menus.
Variable productsHide a product when all its variations are hidden.
When someone opens oneNot found, the shop with a message, a page or a web address.
Sitemap and indexingLeave hidden items out of the sitemap, and ask search engines not to index them.
Store staffAdmins and shop managers see hidden items.

For developers

HookUse
hcpf_hiddenChange what’s hidden from the visitor.
hcpf_variation_modeChange how a variation is hidden.

Frequently asked questions

Why can I still see a hidden product?

Admins and shop managers see hidden items. Log out, use a customer account, or turn off Store staff in Where and how.

Why does a hidden category’s page still show its products?

It’s hidden from shop lists, so its link still works. Choose Everywhere to close the page.

How do I remove all data when deleting the plugin?

Add define( 'HCPF_REMOVE_ALL_DATA', true ); to wp-config.php before deleting the plugin.

Changelog

1.2.0 · October 19, 2026

Feature update

  • Added settings on each product and variation, and a shown but not for sale mode.
  • Added hiding from category lists and menus.

1.1.0 · September 22, 2026

Feature update

  • Added single variations, and hiding them only from search and related products.
  • Added rules with names, dates and attribute values.

1.0.0 · July 31, 2026

Initial release

  • Hide categories, tags and products for everyone, guests, logged-in customers or chosen roles.
  • Hidden from lists with the link still working, or hidden everywhere.