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: UsersIncludejohn@example.com, jane@example.com


Pro Conditions

CampaignBayPro unlocks additional powerful conditions:

Order History Count

Reward loyal customers based on their previous order count.

OperatorBehavior
greater thanCustomer must have more than X previous orders
less thanCustomer must have fewer than X previous orders
equal toCustomer must have exactly X previous orders

Use Case

Create a loyalty reward: Order History Countgreater than5 to reward customers with 6+ orders.

Cart Total / Subtotal

Trigger discounts when the cart reaches a certain value.

OperatorBehavior
greater thanCart total must exceed X amount
less thanCart total must be below X amount

Use Case

Free shipping incentive: Cart Totalgreater than$100 to encourage larger purchases.

Specific Product in Cart

Activate a campaign only when a designated "trigger" product is present.

Use Case

Cross-sell: When customer adds a Camera to cart, offer 20% off Camera Bags.

Specific Category in Cart

Apply discounts when a product from a specific category is in the cart.

Use Case

Bundle deal: When customer has any item from "Electronics," offer 15% off "Accessories."

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.

Need more advanced conditions? Get CampaignBayPro →

Released under the GPL-2.0 License.