WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

WPMU Functions/wpmu create user

Description

Creates a new user account.

Parameters

$user_name
(string) (required) The username of the user to be created.
Default: None
$password
( string ) (required) The password of the user to be created.
Default: None}
$email
( string ) (required) The email address of the user to be created.
Default: None}

Return Values

(integer) 
id of the user created.

Usage

<?php wpmu_create_user($user_name$password$email); ?>