validate_user_form()WP 3.0.0

Validates user sign-up name and email.

No Hooks.

Return

Array. Contains username, email, and error messages. See wpmu_validate_user_signup() for details.

Usage

validate_user_form();

Changelog

Since 3.0.0 Introduced.

validate_user_form() code WP 6.5.4

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