Codex

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

WPMU Functions/wpmu create user

This page redirects to an external site: https://developer.wordpress.org/reference/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

<code style="color: #000000"><span style="color: #0000BB"><?php wpmu_create_user</span><span style="color: #007700">(</span><span style="color: #0000BB">$user_name</span><span style="color: #007700">, </span><span style="color: #0000BB">$password</span><span style="color: #007700">, </span><span style="color: #0000BB">$email</span><span style="color: #007700">); </span><span style="color: #0000BB">?></span></code>