I need to create a workflow which is doing this scenario:
So, I created a workflow:
When the user's woocommerce subscription status changes to on hold. The user role changed to Free User.
So, I created a workflow:
- Trigger: Woocommerce: Subscription Updated
- Filter by Pabbly: Only Continue If...
Select Label: 1.Status : on-hold (map data)
Filter type: Equal to
Value: 1.Status : on-hold (map data)
- Task: Wordpress: Search User
Search Keyword: 1. Billing Email: (map data)
- Task: Wordpress: Update a User
User ID: (map data)
Email Address: (map data)
Username: (map data)
Role: dropdown (only default roles, can't choose the custom roles, so I use the default roles to test it)
- The updated user task changes the user first name, last name, password, and other fields, even I have remove the field from the Task. For example, the task changed the first name to become {{first_name}}. So it didn't change only the user role but all the fields too. So, how to change only the user role?
- How to get my custom roles? For this example, I want to choose my custom role which is Free User.