How to trigger registration email when wp_create_user() called (2 posts)

  1. Tahir Yasin
    Posted 4 years ago #

    Hi All,

    I am developing a user registration plugin, I'm using custom user registration form to get extra user information. And I integrated PayPal payment pro for registration fee.

    I used wp_create_user function to insert user on successful payment but problem is that the registrant is not receiving the registration success email (the default email sent each time a new user register).

    I am searching in way to throw that email each time the wp_create_user is called, I'm sure there should be a way to do so.

    Any idea?

  2. Tahir Yasin
    Posted 4 years ago #

    well, I found the solution myself.

    wp_new_user_notification( $user_id, $plaintext_pass );

    solved the problem.


Topic Closed

This topic has been closed to new replies.

About this Topic