Skip to content

Instantly share code, notes, and snippets.

@LMNTL
Created July 3, 2019 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LMNTL/b6dc0bac20d89286e5824ba02dadf9c1 to your computer and use it in GitHub Desktop.
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
// 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);
@dparker1005
Copy link

NOTE: line 2 on this Gist should read add_filter("pmpro_email_body", "my_pmproec_change_confirmation_text", 11); to match the function name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment