Hide the button for products, categories or roles (PRO)
Simple WishlistsUpdated
Button rules hide the wishlist button on the products you choose and from the customers you choose. Find them under Wishlists › Settings › Button in the Button Rules section. This is a PRO feature.
Set up button rules
- Turn on Enable button rules.
- Fill in any of the fields below. Leave a field empty to skip it.
- Click Save All Settings.
- Hide on these products: search for products by name. For a variable product, choose the parent product and the rule covers all its variations.
- Hide in these categories: hides the button on every product in the chosen categories.
- Hide for products with these tags: hides the button on every product with one of the chosen tags.
- Hide from these customers: choose user roles. Choose Guests (logged out) to show the button to logged-in customers only.
A product is hidden if it matches any one rule. Customers with a hidden role do not see the button on any product.
What the rules affect
- The button is hidden everywhere: product pages, product cards, product blocks and the
[swlp_button]shortcode. - A shopper also cannot save a hidden product in another way, for example from a cached page that still shows the button.
- Products that are already on a wishlist stay there. Rules do not remove saved items.
Role rules and page caching
Hiding the button from Guests (logged out) works with full-page caching, because cached pages are served to logged-out visitors. Hiding it from a logged-in role relies on pages for logged-in customers not being cached, which is the usual setup for WooCommerce stores.


