Conditional Email Tags for Easy Digital Downloads

???? Add powerful conditional logic to your Easy Digital Downloads email templates!

Author:Mihai Joldis (profile at wordpress.org)
WordPress version required:6.2
WordPress version tested:6.8.1
Plugin version:1.0.0
Added to WordPress repository:08-07-2025
Last updated:08-07-2025
Rating, %:0
Rated by:0
Plugin URI:
Total downloads:0
plugin download
Click to start download

** Conditional Email Tags for Easy Digital Downloads ** lets you add smart, dynamic content to your EDD email templates using simple {if ...}{/if} tags. Personalize your customer emails based on payment gateway, order amount, user role, and more!

Examples:
– {if gateway="stripe"}This is only for Stripe payments.{/if}
– {if gateway="paypal" amount=">50"}PayPal and amount over $50!{/if}
– {if user_role="subscriber"}Hello, valued subscriber!{/if}

Why use this plugin?
– ???? Make your emails smarter and more relevant
– ???? Target messages by payment method or order value
– ???? Personalize content for different user roles
– ???? Easily extensible for developers
– More to come!

Usage

Add conditional blocks to your EDD email templates. Here are working examples for all available conditions:

1. By Gateway

  • Only for Stripe payments:
    {if gateway=”stripe”}This is only for Stripe payments.{/if}

  • Only for PayPal payments:
    {if gateway=”paypal”}This is only for PayPal payments.{/if}

2. By Amount

  • Order total greater than $50:
    {if amount=”>50″}Shown if order total is greater than $50.{/if}

  • Order total less than or equal to $20:
    {if amount=”<=20″}Shown if order total is $20 or less.{/if}

  • Order total exactly $100:
    {if amount=”100″}Shown if order total is exactly $100.{/if}

3. By User Role

  • For subscribers:
    {if user_role=”subscriber”}Hello, valued subscriber!{/if}

  • For customers with the ‘administrator’ role:
    {if user_role=”administrator”}Special message for admins.{/if}

4. Multiple Conditions

  • PayPal and order is $100 or more:
    {if gateway=”paypal” amount=”>=100″}PayPal and order is $100 or more!{/if}

  • Stripe and user is a subscriber:
    {if gateway=”stripe” user_role=”subscriber”}Stripe payment from a subscriber!{/if}

Credits

Developed by Mihai Joldis

License

This plugin is licensed under the GPLv2 or later.