Function: add_user

add_user( )

Creates a new user from the "Users" form using $_POST information.

Returns

integer | WP_Error

WP_Error or User ID.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.