函数原型
add_user(): int|WP_Error
函数描述
Creates a new user from the “Users” form using $_POST information.
是否弃用
未弃用
函数参数
无
函数返回值
int|WP_Error WP_Error or User ID.
函数位置
File: wp-admin/includes/user.php.
函数源码
function add_user() {
return edit_user();
}
源码链接
变更日志
Changelog| Version | Description |
|---|
| 2.0.0 | Introduced. |