WooCommerce can hide out-of-stock products store-wide. That is useful when every sold-out product should disappear, but many stores need different behavior for different parts of the catalog.
This routine lets you choose the scope. When a matching product goes out of stock, its catalog visibility is set to Hidden, so it no longer appears in your shop or search results. Every change is recorded in History.
Before you turn it on
In Applies to products, choose the products, categories, tags or brands to hide. Leave it empty only if every sold-out product should be hidden.
Restocking a product does not make it visible again automatically. After restocking, change its catalog visibility when you are ready to return it to the shop.