Skip to main content
Easy Digital Downloads Documentation
Documentation, Reference Materials, and Tutorials for Easy Digital Downloads

edd_email_template_tags filter

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);
Read our latest blog post:
How To Sell Excel Or Google Spreadsheets