add_user(): int|WP_Error

In this article

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

Return

int|WP_Error WP_Error or User ID.

Source

function add_user() {
	return edit_user();
}

Changelog

VersionDescription
2.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.