=== TwinCart Hide Selected Categories & Products ===
Contributors: ddoukas, Twinnet
Tags: woocommerce, hide products, hide categories, catalog visibility, catalog mode
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
WC requires at least: 8.0
WC tested up to: 11.1.2
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Hide selected WooCommerce categories or products from your storefront catalog with a single click.

== Description ==

TwinCart Hide Selected Categories & Products gives you control over your WooCommerce shop's visibility. Hide specific products and categories from the frontend, keeping your catalog focused on what you want customers to see.

= Features =
* Global exclusions: select categories and products to hide from all visitors.
* Subcategories of a hidden category, and all products in them, are hidden too.
* Product search in the settings, using the standard WooCommerce product search field.
* Hidden items are removed from shop pages, category archives, search results, related products, up-sells, cross-sells, widgets, the [products] shortcode, navigation menus and sitemaps.
* Works with WooCommerce blocks: Product Collection, All Products, Product Categories and the Cart/Checkout blocks.
* Hidden products cannot be added to the cart, and are removed from carts that already contain them.
* Visitors who open a hidden product or category by direct URL are redirected to the shop page.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/twincart-hide-selected-categories-products` directory.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Configure settings under WooCommerce -> Settings -> Hide Categories/Products.

== Frequently Asked Questions ==

= Does this plugin require WooCommerce? =

Yes. WooCommerce must be installed and active for this plugin to work.

= Who sees the hidden categories and products? =

Hiding applies to all visitors of the storefront. The items stay available in the WordPress admin.

= What happens to hidden products that are already in a customer's cart? =

WooCommerce removes them from the cart and shows a notice to the customer.

== Changelog ==

= 1.0.0 (2026-10-07) =
* Initial release.
* Global category and product hiding, including subcategories.
* Hiding on shop queries, search results, related products, up-sells, cross-sells, widgets, shortcodes, blocks, the Store API, menus and sitemaps.
* Add-to-cart protection for hidden products.
* Direct URL access protection with redirect to the shop page.
* Declared compatibility with High-Performance Order Storage (HPOS) and the Cart/Checkout blocks.

== WC Compatibility ==

* HPOS Compatible: Yes
* Cart/Checkout Blocks Compatible: Yes
