| 开发者 | prototipo88 |
|---|---|
| 更新时间 | 2026年6月16日 20:05 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPL v2 or later |
| 版权网址: | 版权信息 |
Yes. Add a rule, set the role to Guest and the target to All Products. Unauthenticated visitors will see no products on the shop page, in search results, or on any product page — direct URL access redirects them to the login page.
Yes. The plugin filters all WooCommerce product queries, including shop, category and tag archives, search results, and the WooCommerce REST API.
Yes. Guests are redirected to the WordPress login page (with a return URL so they land back on the product after logging in). Logged-in users whose role hides the product are redirected to the shop. You can override the redirect URL with the riaco_hpburfw_redirect_url filter.
Yes. Open a variable product, expand any variation in the Variations tab, and you will find a Hide by Role section with per-role checkboxes.
Yes. The plugin declares full compatibility with WooCommerce High Performance Order Storage.
Yes. The plugin filters block-based product collection queries and replaces the "No products found" block with a relevant login or logout message when a global hide rule is active for the current user's role.
Yes. Visibility rules are applied automatically to FiboSearch queries.
Rules are evaluated from the top of the list downward. If an All Products rule matches the current user's role, evaluation stops immediately — no lower rules are checked. Move higher-priority rules to the top using the arrow buttons. Rules with equal priority are evaluated in the order they were created.
Yes. Use the riaco_hpburfw_targets filter to add any registered taxonomy as a target in the settings page dropdown.
Yes. Use the riaco_hpburfw_visibility_rules filter to inject rules at runtime (useful for subscription-based or time-limited rules) without saving them to the database. Use riaco_hpburfw_rule_applies to add extra conditions on top of the base role match.
The plugin works with any user role that WordPress recognises. If your membership plugin assigns roles, those roles will appear in the settings automatically. Use the riaco_hpburfw_roles filter to expose non-role membership levels, and riaco_hpburfw_rule_applies to add time-based or subscription-status conditions.