diff --git a/classes/email-templates/class-pmpro-email-template-refund-admin.php b/classes/email-templates/class-pmpro-email-template-refund-admin.php index ff5f47ef0..debc147b9 100644 --- a/classes/email-templates/class-pmpro-email-template-refund-admin.php +++ b/classes/email-templates/class-pmpro-email-template-refund-admin.php @@ -86,7 +86,7 @@ public static function get_default_body() {
Account: !!display_name!! (!!user_email!!)
- Order #!!order_id!! on !!order_date!!
+ Order #!!order_id!! refunded on !!refund_date!!
Total Refunded: !!order_total!!
Account: !!display_name!! (!!user_email!!)
- Order #!!order_id!! on !!order_date!!
+ Order #!!order_id!! refunded on !!refund_date!!
Total Refunded: !!order_total!!
Log in to your membership account here: !!login_url!!
-To view an online version of this order, click here: !!order_url!!
+View an online version of this order here: !!order_url!!
If you did not request this refund and would like more information please contact us at !!siteemail!!
', 'paid-memberships-pro' ) ); } @@ -113,6 +113,7 @@ public static function get_email_template_variables_with_description() { '!!order_id!!' => esc_html__( 'The order ID.', 'paid-memberships-pro' ), '!!order_total!!' => esc_html__( 'The total amount of the order.', 'paid-memberships-pro' ), '!!order_date!!' => esc_html__( 'The date of the order.', 'paid-memberships-pro' ), + '!!refund_date!!' => esc_html__( 'The refund date of the order.', 'paid-memberships-pro' ), '!!billing_address!!' => esc_html__( 'The complete billing address of the order.', 'paid-memberships-pro' ), '!!billing_name!!' => esc_html__( 'The billing name of the order.', 'paid-memberships-pro' ), '!!billing_street!!' => esc_html__( 'The billing street of the order.', 'paid-memberships-pro' ), @@ -175,6 +176,7 @@ public function get_email_template_variables() { 'order_id' => $order->code, 'order_total' => $order->total, 'order_date' => date_i18n( get_option( 'date_format' ), $order->timestamp ), + 'refund_date' => date_i18n( get_option( 'date_format' ), current_time( 'timestamp' ) ), 'billing_name' => $order->billing->name, 'billing_street' => $order->billing->street, 'billing_street2' => $order->billing->street2,