'how to send registration confirmation email to user with wordpress custom registration php form?
$newUserId = wp_insert_user(array(
'user_login' => $userEmail,
'user_pass' => $userPassword,
'user_email' => $userEmail,
'first_name' => $name,
'nickname' => $name,
'user_registered' => date('Y-m-d H:i:s'),
'role' => 'subscriber',
) );
I'm working with custom user registration form on wordpress. Everything is working fine but I need to send a confirmation email to user to verify that the email they have entered belongs to them.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
