Warning: This function has been deprecated. Use wp_create_user() instead.

create_user( string $username, string $password, string $email )

An alias of wp_create_user().

Description Description

See also See also

Top ↑

Parameters Parameters


(string) (Required) The user's username.


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


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

Top ↑

Return Return

(int) The new user's ID.

Top ↑

Source Source

File: wp-includes/deprecated.php

function create_user($username, $password, $email) {
	_deprecated_function( __FUNCTION__, '2.0.0', 'wp_create_user()' );
	return wp_create_user($username, $password, $email);

Top ↑

Changelog Changelog

Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.