Pledge Form: Add ability to resend pledge confirmation email.

Fixes #49.
This commit is contained in:
Ian Dunn 2019-10-26 22:18:28 -07:00
parent 63f718bd9a
commit 3f774fdb78
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB
5 changed files with 41 additions and 13 deletions

View file

@ -41,6 +41,11 @@ function render_form_new() {
$pledge_id = filter_input( INPUT_GET, 'pledge_id', FILTER_VALIDATE_INT );
$unverified_token = filter_input( INPUT_GET, 'auth_token', FILTER_SANITIZE_STRING );
$email_confirmed = process_pledge_confirmation_email( $pledge_id, $action, $unverified_token );
} else if ( filter_input( INPUT_GET, 'resend_pledge_confirmation' ) ) {
$pledge_id = filter_input( INPUT_GET, 'pledge_id', FILTER_VALIDATE_INT );
$complete = true;
Pledge\send_pledge_confirmation_email( $pledge_id, get_post()->ID );
}
ob_start();