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);