Created
July 3, 2019 19:15
-
-
Save LMNTL/b6dc0bac20d89286e5824ba02dadf9c1 to your computer and use it in GitHub Desktop.
Change the text for the confirmation link in the PMPro Email Confirmation Add On welcome email
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// change the text for the confirmation link in the PMPro Email Confirmation Add On welcome email | |
function my_pmproec_change_confirmation_text($body) | |
{ | |
//change this line to modify the confirmation text | |
$new_confirmation_text = "Click this link to activate your membership:"; | |
$old_confirmation_text = "IMPORTANT! You must follow this link to confirm your email address before your membership is fully activated:"; | |
$body = str_replace( $old_confirmation_text, $new_confirmation_text, $body ); | |
return $body; | |
} | |
add_filter("pmpro_email_body", "my_pmproec_change_email_text", 11); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NOTE: line 2 on this Gist should read
add_filter("pmpro_email_body", "my_pmproec_change_confirmation_text", 11);
to match the function name.