wpmu_create_user
wpmu_create_user ( $user_name, $password, $email )
Parameters:- (string) user_name The new user's login name.
- (string) password The new user's password.
- (string) email The new user's email address.
Returns:- (int|false) Returns false on failure, or int $user_id on success.
Defined at:Change Log: - Introduced in WordPress: —
- Deprecated in WordPress: —
Description
Creates a user.This function runs when a user self-registers as well as when
a Super Admin creates a new user. Hook to {@see 'wpmu_new_user'} for events
that should affect all new users, but only on Multisite (otherwise
use {@see 'user_register'}).