Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/nardbyte/woocommerce-hide-products/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
📦 A lightweight WooCommerce plugin that allows you to hide specific products from the shop and category pages while keeping them accessible via direct links.
🚀 Features
- ✅ 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.
🛠️ Installation
- Download the plugin as a ZIP or clone the repository.
- Upload the folder to
/wp-content/plugins/. - Activate the plugin in WordPress > Plugins.
⚙️ Usage
- 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.
📌 Requirements
- WordPress 5.0+
- WooCommerce 4.0+
- PHP 7.4+
🔧 How It Works
- Uses
woocommerce_product_queryto 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.
📜 License
This project is licensed under the MIT License.
🤝 Contributing
Feel free to fork, improve, and submit pull requests! 🚀