# How to create user role specific campaigns in WPLoyalty ?

WPLoyalty allows you to assign Points / Rewards to different user roles. We can reward a customer by creating a campaign for a specific user role or we can reward different Points/ Rewards for different User roles.&#x20;

{% hint style="info" %}
*NOTE:  WordPress provides a concept called user roles. You can use plugins like* [*User Role Editor*](https://wordpress.org/plugins/user-role-editor/) *to create any number of roles and assign users to those roles. For Example: Wholesale*

*If you have not assigned your users to any roles, you might want to consider assigning your wholesale customers to a user role for example.*&#x20;
{% endhint %}

Now, let's see how to create Campaigns for specific user roles.

**Example scenarios:**&#x20;

* Get 100 Points for Wholesale User roles while spending $100 or more
* Get 50 Points for Customer User roles while spending $100 or more.&#x20;

### **Creating a campaign:**&#x20;

**Scenario 1:** Providing 100 Points for **Wholesale** User roles while spending $100 or more

[Click here to know about the step by step procedure for how to create reward based on spending campaign.](https://docs.wployalty.net/campaign-types/reward-for-spending)

Now, in the **Reward Based on Spending** Campaign , we have to add additional condition as "User role ".  For example: Wholesale

**Creating a Reward Based on Spending Campaign 1:**&#x20;

<figure><img src="https://103140889-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS9c8SKH3fobHhx7SjaLW%2Fuploads%2FoECi2T1u4D0N3IcBsKsC%2Fscreenshot-localhost-2022.12.15-16_40_32.png?alt=media&#x26;token=7acbbfe5-338f-49a9-b801-8f4a223de672" alt=""><figcaption></figcaption></figure>

**Cart page of Wholesale User:**&#x20;

<figure><img src="https://103140889-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS9c8SKH3fobHhx7SjaLW%2Fuploads%2FPgvgOGzhSxQOb9rdEcLH%2Fscreenshot-localhost-2022.12.15-16_45_45.png?alt=media&#x26;token=1a7bfe2c-7919-44d0-ba70-8d962300a68a" alt=""><figcaption></figcaption></figure>

So, if a Wholesale customer spends minimum of $100, then he will earn 100 points for that order.&#x20;

**Scenario 2:** Providing 50 Points for "**Customer"** User role while spending $100 or more.&#x20;

**Creating a Reward Based on Spending Campaign 2:**&#x20;

<figure><img src="https://103140889-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS9c8SKH3fobHhx7SjaLW%2Fuploads%2FIzwgTIAAUqIJUMd98skP%2Fscreenshot-localhost-2022.12.15-17_03_30.png?alt=media&#x26;token=2f2011a5-3a3b-4b89-b9cd-72920ccf1be9" alt=""><figcaption></figcaption></figure>

**Cart page of Customer:**&#x20;

<figure><img src="https://103140889-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS9c8SKH3fobHhx7SjaLW%2Fuploads%2Fv2yeR1UUKddPlm6pJ8hO%2Fscreenshot-localhost-2022.12.15-17_07_43.png?alt=media&#x26;token=653f3cc2-7460-4a13-b967-584b7dcee94c" alt=""><figcaption></figcaption></figure>

So if a user is logged in as "Customer" and spends minimum of $100, he will earn 50 Points for that order.&#x20;

**Video:**&#x20;

{% embed url="<https://youtu.be/b7L6Q-r3cmI>" %}

**Note:**

Customer will get points/rewards only when they belongs to specific user role as per given condition.&#x20;

Likewise, you can create Campaign for specific user roles.&#x20;

Still unclear ?\
Please submit a [support request](https://wployalty.net/support/). We are always happy to assist you :)
