Hi there
Im coding a plugin with custom registration page. When I process registration I use this function:
$new_user = wp_insert_user( $userdata );
But this makes the user active and they can login. I want them to first get confirmation email with link and only after that they can login.
Which function can I use todo this?
And how do you insert user as inactive?