add_user()WP 2.0.0

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

No Hooks.

Return

Int|WP_Error. WP_Error or User ID.

Usage

add_user();

Changelog

Since 2.0.0 Introduced.

add_user() code WP 6.6

function add_user() {
	return edit_user();
}