📦 A lightweight WooCommerce plugin that allows you to hide specific products from the shop and category pages while keeping them accessible via direct links.
- ✅ Hide individual products from the shop, category, and tag pages.
- ✅ Products remain accessible via direct URL.
- ✅ Adds a checkbox in the product settings to toggle visibility.
- ✅ Simple and lightweight, does not affect site performance.
- Download the plugin as a ZIP or clone the repository.
- Upload the folder to
/wp-content/plugins/
. - Activate the plugin in WordPress > Plugins.
- Edit any product in WooCommerce.
- In the Product Data section, go to General.
- Check the box "Hide from shop".
- Save changes. The product will be hidden from the shop but still accessible via direct link.
- WordPress 5.0+
- WooCommerce 4.0+
- PHP 7.4+
- Uses
woocommerce_product_query
to filter out hidden products from shop, category, and tag pages. - Retrieves hidden products via a custom meta key
_hide_from_shop
. - Ensures hidden products can still be accessed directly.
This project is licensed under the MIT License.
Feel free to fork, improve, and submit pull requests! 🚀