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

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

An alias of wp_create_user() .

Description

See also

Parameters

$usernamestringrequired
The user’s username.
$passwordstringrequired
The user’s password.
$emailstringrequired
The user’s email.

Return

int The new user’s ID.

Source

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

Changelog

VersionDescription
2.0.0Introduced.

User Contributed Notes

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