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

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