⌘K

Role-based restrictions

Last updated

Version note: This guide covers the v1.2.0 development build. Settings may differ from your installed Marketplace version. Verify your version before following these steps; runtime compatibility has not yet been confirmed.

Role rules restrict selected products and categories for signed-in users with a configured WordPress role. The role picker reads existing roles; it does not create a wholesale, VIP, or membership role for you.

Configure one role

  1. Open Role-Based Restriction.
  2. Choose an existing role in Select User Role.
  3. Turn on Enable Role-Based Restrictions.
  4. Select the products and/or categories to restrict.
  5. Choose Save Role Settings.
  6. Sign in with a test account that actually has the selected role. Compare it with an account that does not.

Existing entries appear under Configured Roles. Select a role again to review its configuration. When editing, check the loaded selections before saving.

Guests and multiple roles

Logged-out visitors have no WordPress user role in this implementation. There is no built-in Guest entry in the inspected role picker. A Customer rule alone therefore does not make a product members-only or hide it from guests.

For a user with several roles, the frontend uses the first enabled matching role configuration in that user’s role sequence. It does not combine every matching role rule. Avoid conflicting multi-role configurations and test the exact accounts used in your store.

To disable a role rule, select the role, turn off its restriction switch, and save. This does not override other restriction types.

Still stuck? How can we help? Get Help