Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding missing email template variables for the payment reminder email #3296

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ public function get_recipient_name() {
*/
public static function get_email_template_variables_with_description() {
return array(
'membership_id' => esc_html__( 'The ID of the membership level.', 'paid-memberships-pro' ),
'membership_level_name' => esc_html__( 'The name of the membership level.', 'paid-memberships-pro' ),
'membership_cost' => esc_html__( 'The cost of the membership.', 'paid-memberships-pro' ),
'billing_amount' => esc_html__( 'The amount billed for the subscription.', 'paid-memberships-pro' ),
'renewaldate' => esc_html__( 'The date of the next payment date.', 'paid-memberships-pro' ),
'display_name' => esc_html__( 'The display name of the user.', 'paid-memberships-pro' ),
'user_email' => esc_html__( 'The email address of the user.', 'paid-memberships-pro' ),
Expand All @@ -137,7 +140,10 @@ public function get_email_template_variables() {
$user = get_userdata( $subscription_obj->get_user_id() );

return array(
'membership_id' => $membership_id,
'membership_level_name' => $membership_level->name,
'membership_cost' => $subscription_obj->get_cost_text(),
'billing_amount' => pmpro_formatPrice( $subscription_obj->get_billing_amount() ),
'renewaldate' => date_i18n( get_option( 'date_format' ), $subscription_obj->get_next_payment_date() ),
'display_name' => $user->display_name,
'user_email' => $user->user_email,
Expand Down