Skip to content
WooCommerce WordPress

Order Completed → Update User Role

Automatically upgrade user roles when orders are fulfilled. Perfect for VIP programs, membership tiers, and unlocking premium access based on purchases.

beginner 5 minutes |
#orders #roles #membership #woocommerce #access

Use Case

When an order is completed, you want to automatically upgrade the customer’s user role. This enables premium access, unlocks gated content, or promotes customers to VIP status based on their purchases.

Common scenarios:

  • Promote to VIP status after high-value purchase
  • Grant course access after enrollment purchase
  • Unlock premium content for buyers
  • Upgrade to wholesale role after application approval
  • Activate membership tier based on product purchased

Step-by-Step Setup

1. Create a New Workflow

Navigate to Sequensy → Workflows in your WordPress admin and click Add New Workflow.

Name your workflow “Upgrade to VIP on Purchase” or “Grant Course Access”.

2. Configure the Trigger

Select Order Completed as your trigger.

Key filters to use:

  • Products: Trigger only for specific products (membership, course, VIP pass)
  • Order Total: Upgrade after spending threshold (e.g., $500+)
  • Product Categories: Limit to membership or premium categories

3. Set Up the Update User Role Action

Configure the role change:

SettingExample ValueDescription
User{customer_email}Target the order customer
New RoleVIP CustomerThe role to assign
Replace or AddReplaceUsually replace existing role

4. Send Notification Email (Optional)

Chain a Send Email action to inform the customer:

Subject: You're now a VIP member!

Hi {billing_first_name},

Congratulations! Thanks to your purchase, you've been upgraded
to VIP status.

Your new benefits include:
- 15% off all future orders
- Early access to new products
- Free shipping on all orders
- Priority customer support

Log in to your account to start enjoying your VIP perks:
{login_url}

Thank you for being a valued customer!

5. Test Your Workflow

  1. Create the target user role if it doesn’t exist
  2. Enable the workflow
  3. Place and complete a qualifying order
  4. Verify user role was updated
  5. Confirm access to role-specific content

Pro Tips

Create custom roles: Don’t be limited to default WordPress roles. Create custom roles like “VIP Customer”, “Wholesale Buyer”, or “Course Student” for precise access control.

Cumulative spending: For lifetime value-based upgrades, use order conditions combined with custom user meta tracking total spend.

Role hierarchies: Design role tiers (Bronze → Silver → Gold → Platinum) and create separate workflows for each upgrade threshold.

Prevent downgrades: Add conditions to check current role before upgrading—you don’t want to accidentally downgrade a Platinum member to Gold.

Example Role Structures

Spending-Based VIP Tiers

TierSpending ThresholdRoleDiscount
Bronze$0Customer0%
Silver$100Silver Member5%
Gold$500Gold Member10%
Platinum$1000Platinum Member15%

Product-Based Access

Product PurchasedNew RoleAccess Granted
Basic CourseStudentCourse content
Pro CoursePro StudentAll courses
MembershipMemberMember area
Lifetime PassLifetime MemberEverything

Troubleshooting

Role not updating?

  • Verify the target role exists in WordPress
  • Check that user account exists
  • Review workflow execution logs

Customer lost existing role?

  • Check if using “Replace” vs “Add” role setting
  • Verify no conflicting workflows
  • Review role assignment logic

Can’t access premium content?

  • Confirm role was assigned correctly
  • Check content access permissions match role
  • Clear any caching plugins after role change