wp_create_user
wp_create_user ( $username, $password, $email = '' )
Parameters:- (string) $username The user's username.
- (string) $password The user's password.
- (string) $email The user's email (optional).
See:Returns:Defined at: - Introduced in WordPress: 2.0.0
- Deprecated in WordPress: -
Description
A simpler way of inserting an user into the database.
Creates a new user with just the username, password, and email. For more
complex user creation use wp_insert_user() to specify more information.