create_user()
create_user( string $username, string $password, string $email )
wp_create_user()的别名。
An alias of wp_create_user().
说明(Description)
另见函数 wp_create_user()
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$username | (string) | 必需 | 用户的用户名。 |
$password | (string) | 必需 | 用户的密码。 |
(string) | 必需 | 用户的电子邮件。 |
返回(Return)
(int)新用户的ID。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.0.0 | wp-includes/deprecated.php:1191 | 0 | 2 |
create_user() 为WP2原创文章,链接:https://www.wp2.cn/functions/create_user/