WordPress.org

Ready to get started?Download WordPress

Forums

show password in user registration email (5 posts)

  1. matom
    Member
    Posted 3 years ago #

    Hello,

    I've set up a form with pods cms plugin which when saved creates a new user account and random password and then emails this to the new user (wpmu_welcome_user_notification($user_id, $random_password);).

    It all works fine apart from that I need the password to show in the email instead of "Password: [User Set]".

    I can't seem to work out how to change this. Any ideas?

  2. @mercime
    Volunteer Moderator
    Posted 3 years ago #

    Is PODS-CMS plugin even compatible with Multisite?

  3. matom
    Member
    Posted 3 years ago #

    I only use pods-cms for the main site and that works fine. I'm not expecting it to work on the network sites, but I haven't tried this.

    I still haven't managed to show the password in the welcome email.

    I guess I could just send out the password with wp_mail, but I'd rather use wpmu_welcome_user_notification instead.

  4. You'll have to ask Scott. (the pods plugin dev)

  5. matom
    Member
    Posted 3 years ago #

    I don't think this is related at all to pods. Pods is only the trigger to run some core WP functions when it saves the data:

    $random_password = wp_generate_password( 12, false );
    $user_id = wpmu_create_user( $user_name, $random_password, $user_email );
    wpmu_welcome_user_notification($user_id, $random_password);

    All of that works fine, and the password gets generated correctly and is entered to the database. I just need this password to print in the welcome email instead of Password: [User Set].

    The same happens even if I run those functions seperate from pods.

Topic Closed

This topic has been closed to new replies.

About this Topic