diff --git a/pmpro-approvals.php b/pmpro-approvals.php index b4f5957..3debc2f 100644 --- a/pmpro-approvals.php +++ b/pmpro-approvals.php @@ -1387,7 +1387,7 @@ public static function pmpro_membershiplevels_template_level( $level, $template */ public static function pmpro_confirmation_message( $confirmation_message, $pmpro_invoice ) { - global $current_user; + global $current_user, $wpdb; // Try to get the membership ID for the confirmation. if ( ! empty( $pmpro_invoice ) ) { @@ -1421,7 +1421,21 @@ public static function pmpro_confirmation_message( $confirmation_message, $pmpro $confirmation_message .= '
' . sprintf( __( 'Below are details about your membership account and a receipt for your initial membership invoice. A welcome email with a copy of your initial membership invoice has been sent to %s.', 'pmpro-approvals' ), $current_user->user_email ) . '
'; return $confirmation_message;