Map WordPress roles to subscription plans
Make your whole stack tier-aware — assign a role when a plan activates and strip it when it ends, automatically.
- Auto role on activate
- Strip on cancel
- Fallback role
Roles are the shared language of WordPress plugins. Role Mapping assigns a WordPress role when a subscription is active/trial and removes it when the subscription ends — so forums, LMSs, and other tools honor your tiers automatically. You control on-hold behavior and a fallback role. This recipe maps roles to a plan.
- Active/trial subscribers get the mapped role automatically.
- Roles are stripped when the subscription ends.
- Choose whether on-hold members keep their role.
- A fallback role prevents role-less accounts.
The exact configuration
Enter these values and you have the setup live. Every field maps to a real ArraySubs setting.
| Setting | Value |
|---|---|
| Rule tabMember Access | Member Access → Role Mapping |
| Add Roles / Remove RolesRule action | Roles to grant / strip when the rule matches |
| On Hold BehaviorRule action | Keep roles (default) / Remove roles |
| Fallback RoleRule action | Assigned only if the user has no roles left |
When to use this setup
Set it up in 2 steps
A step-by-step guide drawn from the ArraySubs user manual. Open the linked page for the full walkthrough and screenshots.
Create a Role Mapping rule
In Member Access → Role Mapping, add a rule with the condition Has Active Subscription to the plan.
Access RulesSet add/remove roles
Choose the role(s) to Add when active and any to Remove; set On Hold Behavior and a Fallback Role.
Access Rules
Notes & edge cases
Modules behind this recipe
The ArraySubs modules this setup relies on.
Member Access
Control who can see, download, and purchase content using flexible rules tied to subscriptions and roles.
Subscription Products
Create and manage simple or variable subscription products with trials, signup fees, plan logic, and lifecycle behavior.
Related setups to explore
Other configurations you can build with the same modules.
Tiered roles (Starter/Pro/Enterprise)
Map each plan tier to its own role and strip lower-tier roles on upgrade — clean role hierarchy across tiers.
Members-only product catalog
Hide or block-purchase products for non-members — a wholesale or members-only store behind a subscription.
Restrict pages & posts by plan
Gate any page, post, or custom post type to subscribers — show a custom message to everyone else.
Questions, answered
Unlock the complete Pro stack
Start on the free-forever core today, then choose a paid Pro plan when you need the advanced Pro feature set.
No credit card required · Annual and lifetime options available
