W3cubDocs

/WordPress

validate_user_form()

Validate user signup name and email

Return

(array) Contains username, email, and error messages.

Source

File: wp-signup.php

function validate_user_form() {
	return wpmu_validate_user_signup( $_POST['user_name'], $_POST['user_email'] );
}

Changelog

Version Description
MU (3.0.0) Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/validate_user_form