validate_user_form() WordPress Function

The validate_user_form() function is used to validate the user registration form on a WordPress site. This function is called when the user submits the form. It checks the form for errors and if there are any, it displays them to the user.

validate_user_form() #

Validates user sign-up name and email.


Return

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


Top ↑

Source

File: wp-signup.php

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


Top ↑

Changelog

Changelog
VersionDescription
MU (3.0.0)Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.