# edd_email_template_tags filter

**Update:** This filter is now deprecated. To create a custom email tag, please see this example code snippet [here](https://library.wpcode.com/snippet/j578kp2g/ &quot;here&quot;)

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(&#039;{your_custom_tag}&#039;, &#039;replace the tag with this&#039;, $message);
	return $message;
}
add_filter(&#039;edd_email_template_tags&#039;, &#039;custom_edd_email_tags&#039;, 10, 2);&lt;br&gt;&lt;/br&gt;
```