Pledge Log: Capture email events.

This commit is contained in:
Ian Dunn 2019-10-31 20:39:57 -05:00
parent 97daa42308
commit 87eb8ec43a
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB
4 changed files with 46 additions and 5 deletions

View file

@ -182,11 +182,11 @@ function send_contributor_confirmation_emails( $pledge_id, $contributor_id = nul
"https://profiles.wordpress.org/me/profile/edit/group/5/\n\n" .
"If they aren't sponsoring your contributions, then you can ignore this email, and you won't be listed on their pledge."
"If {$pledge->post_title} isn't sponsoring your contributions, then you can ignore this email, and you won't be listed on their pledge."
;
$user = get_user_by( 'login', $contributor->post_title );
Email\send_email( $user->user_email, $subject, $message );
Email\send_email( $user->user_email, $subject, $message, $pledge_id );
}
}