Skip to content

Conditions

Campaign Bay allows you to add Conditions to any campaign. These conditions "gate" the discount, ensuring it only applies when specific criteria are met.


How Conditions Work

Every campaign includes a Conditions section where you can add one or more rules.

Match Logic

Match Any / Match All Toggle

ModeBehavior
Match AnyDiscount applies if at least one condition is true
Match AllDiscount applies only if all conditions are true

Adding Conditions

Click Add New Condition to see the available options:

Conditions Dropdown


Available Conditions

1. User Role (Single)

Restrict the campaign to users with a single specific WordPress role.

User Role Condition

With / Without Toggle

With Without Dropdown

OptionBehavior
withOnly users with the selected role can use this discount
withoutUsers without the selected role can use this discount

Select User Role

Role Selection Dropdown

Choose from any WordPress role on your site:

  • Administrator, Editor, Author, Contributor, Subscriber
  • WooCommerce roles: Customer, Shop Manager
  • Custom roles from other plugins

Use Case

Create a "VIP Only" sale: User RolewithVIP Customer


2. User Roles (Multiple)

Restrict the campaign to users with one of several WordPress roles.

User Roles Condition

With / Without Toggle

User Roles With Without

OptionBehavior
withOnly users with any of the selected roles can use this discount
withoutUsers without any of the selected roles can use this discount

Multi-Select Roles

User Roles Selected

Select multiple roles — user must have at least one of the selected roles.

Use Case

Create a wholesale discount: User RoleswithWholesale Buyer, VIP Customer


3. Users (Specific)

Restrict the campaign to specific individual users by name or email.

Users Condition

Include / Exclude Toggle

Users Include Exclude

OptionBehavior
IncludeOnly the selected users can use this discount
ExcludeEveryone except the selected users can use this discount

Multi-Select Users

Select multiple users from the dropdown — search by name or email.

Use Case

Create a personal thank-you discount for top customers: UsersInclude[email protected], [email protected]

Upgrade to CampaignBayPro →


Next Steps

Now that you know how to apply specific rules to users and roles, learn how to target your discounts to specific products and categories.

Released under the GPL-2.0 License.