rpress_email_template_tags filter

Author: bibhu 129 views

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_rpress_email_tags($message, $payment_data) {
	$message = str_replace('{your_custom_tag}', 'replace the tag with this', $message);
	return $message;
add_filter('rpress_email_template_tags', 'custom_rpress_email_tags', 10, 2);