| 开发者 | woomanagers |
|---|---|
| 更新时间 | 2026年11月16日 22:47 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
?add-to-cart= link by hand. Hidden categories disappear from category widgets, menus and the [product_categories] shortcode, so nothing points at a door that will not open.
Rules stack rather than compete. Each rule adds its hidden items for the role it targets, so a wholesale customer and a guest can have completely different views of the same store without you working out which rule wins. There is also an "Everyone" target for pulling an item from the whole storefront for a while, which is useful when a line is out of stock indefinitely and you do not want to change its status and lose its URL.
What a rule can hide
[product_categories] shortcodeAdd a rule, set "Hide from" to Guest (not logged in), and pick the products or categories. Logged-out visitors stop seeing those items anywhere in the catalog, while your logged-in customers carry on as normal.
Create one rule per role. Each rule hides its own set of items from that role, and rules stack rather than override each other, so a wholesale customer and a retail customer can see two different catalogs in the same store.
Yes. Choose the category rather than individual products and every product inside it is hidden too, along with the category archive and the category's appearance in widgets, menus and the [product_categories] shortcode.
Yes. A rule on a parent category also hides its child categories and the products in them, so you do not need to select every subcategory by hand.
They are redirected to the shop page. The same applies to a hidden category archive. The product also cannot be added to the cart by URL, so a shared or guessed ?add-to-cart= link does not work either.
Yes. Create a rule for the Guest role and select all of your product categories. Guests then see an empty shop, and customers who log in see the catalog. Remember to add new top-level categories to the rule when you create them.
Yes, choose "Everyone (hide from all visitors)". It is handy for pulling items for a while without changing their status, so the product keeps its URL, reviews and history for when it comes back.
Yes. Hidden products are removed from product search as well as from the shop and category pages, so they cannot be found by searching for their name.
Yes. Related products, upsells, cross-sells and product shortcode loops are filtered the same way, so a hidden item cannot reappear as a recommendation on a visible product's page.
Yes. Rules apply at the product level, so hiding a variable product hides it and all of its variations together.
They stack. Each rule hides its items from the role it targets, so overlapping rules simply mean the product is hidden from both roles. There is no priority order to manage.
In the dashboard, always: the Products screen is never filtered. On the storefront, rules apply to your role like any other, so a rule that hides from Guests does not affect you while you are logged in. Use a private browser window to check what guests see.
It hides the product itself. To keep a product visible and hide only its price or its Add to Cart button, use Hide Price and Add to Cart for WooCommerce from the same range.
No. There are no extra database tables, no front-end scripts and no background processing. Rule lookups are cached per request, so a shop page showing thirty products reads the rules once rather than thirty times.
Hidden products are removed from the storefront and from search on your site. The plugin does not alter XML sitemaps or add noindex tags, so a product hidden only from some visitors can still be listed by search engines.
Yes. The plugin declares compatibility with WooCommerce High-Performance Order Storage and with the block-based Cart & Checkout.
Yes. Product Visibility Pro for WooCommerce adds "show only to" rules, several roles or named customers on one rule, a request-access form in place of the price, targeting by product tag and scheduled rules. Everything described on this page is included in the free plugin.
Uninstalling removes the plugin's single stored option, which contains your rules. If Product Visibility Pro or the B2B Managers Suite is installed, the rules are kept because they use them. Your products and categories are untouched and simply become visible to everyone again.