wpmu_create_user

Advertisement

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

$user_name

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

$password

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

$email

(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


			

Advertisement

Changelog Changelog

Changelog
Version Description
MU (3.0.0) Introduced.

Advertisement

Leave a Reply

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