函数原型
create_user( string $username, string $password, string $email ): int
函数描述
An alias of wp_create_user() .
是否弃用
Warning: This function has been deprecated. Use wp_create_user() instead.
函数参数
-
$username
string
Required - The user’s username.
-
$password
string
Required - The user’s password.
-
$email
string
Required - The user’s email.
函数返回值
int The new user’s ID.
函数位置
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);
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |

