On this page
add_user(): int|WP_Error
Creates a new user from the “Users” form using $_POST information.
Return
Source
File: wp-admin/includes/user.php. View all references
function add_user() {
return edit_user();
}
Related
Uses
| Uses | Description |
|---|---|
| edit_user() wp-admin/includes/user.php | Edit user settings based on contents of $_POST |
Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/add_user