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.
Source
File: wp-signup.php
function validate_user_form() { return wpmu_validate_user_signup( $_POST['user_name'], $_POST['user_email'] ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
MU (3.0.0) | Introduced. |