Summery Summery

Create a user.

Syntax Syntax

wpmu_create_user( string $user_name, string $password, string $email )

Description Description

This function runs when a user self-registers as well as when a Super Admin creates a new user. Hook to ‘wpmu_new_user’ for events that should affect all new users, but only on Multisite (otherwise use {@see’user_register’}).

Parameters Parameters


(string) (Required) The new user's login name.


(string) (Required) The new user's password.


(string) (Required) The new user's email address.

Return Return

(int|false) Returns false on failure, or int $user_id on success

Source Source

File: wp-includes/ms-functions.php



Changelog Changelog

Version Description
MU (3.0.0) Introduced.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.