mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-22 02:53:43 +03:00
Manage Pledge: Add more information to the manage link email (#138)
This commit is contained in:
parent
83fa522c9f
commit
2d8932cbd5
|
@ -152,17 +152,18 @@ function send_manage_pledge_link( $pledge_id ) {
|
||||||
return new WP_Error( 'invalid_email', 'Invalid email address.' );
|
return new WP_Error( 'invalid_email', 'Invalid email address.' );
|
||||||
}
|
}
|
||||||
|
|
||||||
$subject = __( 'Updating your Pledge', 'wporg-5ftf' );
|
$subject = __( 'Next steps to update your Pledge', 'wporg-5ftf' );
|
||||||
$message =
|
$message = sprintf(
|
||||||
'Howdy, please open this link to update your pledge:' . "\n\n" .
|
"Hi there!\n\nThanks for confirming your email! Here is the link to update your pledge: \n\n%s\n\nIf you have any questions about how to update your pledge, or about Five for the Future in general, please visit %s.\n\nThanks for participating in Five for the Future. Your contribution ensures that WordPress continues to thrive!",
|
||||||
|
|
||||||
Auth\get_authentication_url(
|
Auth\get_authentication_url(
|
||||||
$pledge_id,
|
$pledge_id,
|
||||||
'manage_pledge',
|
'manage_pledge',
|
||||||
get_page_by_path( 'manage-pledge' )->ID,
|
get_page_by_path( 'manage-pledge' )->ID,
|
||||||
// The token needs to be reused so that the admin can view the form, submit it, and view the result.
|
// The token needs to be reused so that the admin can view the form, submit it, and view the result.
|
||||||
false
|
false
|
||||||
);
|
),
|
||||||
|
home_url()
|
||||||
|
);
|
||||||
|
|
||||||
$result = send_email( $admin_email, $subject, $message, $pledge_id );
|
$result = send_email( $admin_email, $subject, $message, $pledge_id );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue