On this page
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
$usernamestring Required-
The user's username.
$passwordstring Required-
The user's password.
$emailstring Required-
The user's email.
Return
int The new user's ID.
Source
File: wp-includes/deprecated.php. View all references
function create_user($username, $password, $email) {
_deprecated_function( __FUNCTION__, '2.0.0', 'wp_create_user()' );
return wp_create_user($username, $password, $email);
}
Related
Uses
| Uses | Description |
|---|---|
| wp_create_user() wp-includes/user.php | Provides a simpler way of inserting a user into the database. |
| _deprecated_function() wp-includes/functions.php | Marks a function as deprecated and inform when it has been used. |
Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/create_user