When editing a product, a Role Visibility meta box appears in the right sidebar with three modes:
- All Roles — Visible to everyone. This is the default for new products.
- Role-Restricted — Only the roles you check can see this product. Selecting this mode reveals a checklist of all WordPress roles plus any User Classes and the
Guest (Logged-out)pseudo-role (if enabled in Settings). - Hidden — The product is hidden from the storefront for everyone. The Hidden Product Behavior setting decides what happens when the URL is accessed directly.
To restrict a product: edit the product → in the Role Visibility meta box, select Role-Restricted → tick the roles that should see it → click Update.
Role Visibility is saved to the product as _rvp_visibility (mode) and _rvp_visible_roles (the role slug array when mode is Role-Restricted).