Contributors: Add ability to resend confirmation email.

Fixes: #50.
This commit is contained in:
Ian Dunn 2019-10-26 10:59:06 -07:00
parent 62f5335b51
commit c10699f97c
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB
3 changed files with 20 additions and 7 deletions

View file

@ -220,6 +220,13 @@ function save_pledge( $pledge_id, $pledge ) {
}
save_pledge_meta( $pledge_id, $submitted_meta );
if ( filter_input( INPUT_POST, 'resend-contributor-confirmation' ) ) {
PledgeForm\send_contributor_confirmation_emails(
$pledge_id,
filter_input( INPUT_GET, 'resend-contributor-id', FILTER_VALIDATE_INT )
);
}
}
/**