Warning: This function has been deprecated. Use wp_create_user() instead.
create_user( string $username, string $password, string $email )
An alias of wp_create_user().
描述
参数
- $username
-
(string)
(Required)
The user’s username. - $password
-
(string)
(Required)
The user’s password. -
(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 | 描述 |
---|---|
2.0.0 | Introduced. |
相关函数
Uses
-
wp-includes/functions.php:
_deprecated_function() -
wp-includes/user.php:
wp_create_user()
User Contributed Notes
你可能对这些文章感兴趣:
- wordpress函数export_wp()用法示例
- wordpress函数extract_from_markers()用法示例
- wordpress函数export_add_js()用法示例
- wordpress函数export_date_options()用法示例
- wordpress函数esc_textarea()用法示例
- wordpress函数esc_url()用法示例
- wordpress函数esc_url_raw()用法示例
- wordpress函数esc_js()用法示例
- wordpress函数esc_sql()用法示例
- wordpress函数esc_html__()用法示例
- wordpress函数esc_html_x()用法示例
- wordpress函数esc_html()用法示例
- wordpress函数esc_html_e()用法示例
- wordpress函数esc_attr_x()用法示例
如有疑问,请前往问答中心反馈!
反馈