Login
Get Started

Easy Digital Downloads Documentation

Documentation, Reference Materials, and Tutorials for Easy Digital Downloads 

edd_email_template_tags filter

Update: This filter is now deprecated. To create a custom email tag, please see this example code snippet here

This filter allows you to add additional template tags to the email purchase receipts.

The filter takes two parameters:

  • $message – an HTML string of the email contents
  • $payment_data – an array of meta data for the payment

You can add custom template tags like this:

function custom_edd_email_tags($message, $payment_data) {
	$message = str_replace('{your_custom_tag}', 'replace the tag with this', $message);
	return $message;
}
add_filter('edd_email_template_tags', 'custom_edd_email_tags', 10, 2);

Was this article helpful?

Start selling today!

Join over 50,000 smart store owners, and start using the easiest way to sell digital products with WordPress.

Copyright © 2025 Sandhills Development, LLC