WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Multiple emails solved (password register and new registration email combo)

[Resolved] Multiple emails solved (password register and new registration email combo)

  • I just figured that if I had this problem, someone else might. I managed to fix it, but wanted to share what I did to do so.

    There is apparently a conflict between the plugin wordpress-password-register and new-user-email-set-up.

    What happens is that when used together two registration emails and two admin new user notifications are sent. After digging through the code for a while, I managed to figure out that it was caused by the fact that wordpress-password-register makes a new call to the function wp_new_user_notification.

    So the fix is simple:
    1. Find the new function wp_new_user_notification in wordpress-password-register and completely delete it. We want the function replaced by that of new-user-email-set-up. Don’t actually replace it though.

    2. Change:
    wp_new_user_notification($userID, $this->user_pw, 'wp-pwd-register');
    to:
    wp_new_user_notification($userID, $this->user_pw);

    3. Comment out this line in your wp-login.php:
    wp_new_user_notification($user_id, $user_pass);
    so that it reads:
    //wp_new_user_notification($user_id, $user_pass);

    What this does stops wordpress from trying to send out emails for new user registrations. Then it uses wordpress-password-register to take care of all that password junk, THEN send out a new user email notification. This allows the email that is sent out to contain the new password (instead of the one that is automatically generated) AND the message that you laid out in new-user-email-set-up.

    Hope that helps anyone with the same issues. If anyone has a better suggestion as to how this should be done (especially if it doesn’t involve commenting out a piece of wp-login.php), let me know. Because now, every time I update wordpress… I’m going to have to make that same change.

    http://wordpress.org/extend/plugins/wordpress-password-register/

Viewing 1 replies (of 1 total)
  • you should contact the authors of the plugins and request, that they change the code to your needs. maybe they will do it, when there are more often people requesting that.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Multiple emails solved (password register and new registration email combo)’ is closed to new replies.
Skip to toolbar