Skip to content

Instantly share code, notes, and snippets.

@WebEndevSnippets
Created January 27, 2014 20:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WebEndevSnippets/8656700 to your computer and use it in GitHub Desktop.
Save WebEndevSnippets/8656700 to your computer and use it in GitHub Desktop.
WordPress: Modify WP registration signup email message and subject
add_filter( 'wpmu_signup_user_notification_subject', 'we_modify_register_user_notification_subject', 10, 4 );
/**
* Modify the user registration email activation subject
*/
function we_modify_register_user_notification_subject( $text ) {
return 'Welcome to the Best Books on Writing site! (Activation Required)';
}
add_filter('wpmu_signup_user_notification_email', 'we_modify_register_user_notification_message', 10, 4);
/**
* Modify the user registration email activation message
*/
function we_modify_register_user_notification_message($message, $user, $user_email, $key) {
$message = sprintf(__(( "To activate your new account, please click the following link:\n\n%s\n\n After you activate, you will receive *another email* with your login information.\n\n" ),
$user, $user_email, $key, $meta),site_url( "?page=gf_activation&key=$key" ));
return sprintf($message);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment