Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wpmu validate user signup

This page is marked as incomplete. You can help Codex by expanding it.


Processes new user registrations.

Checks the data provided by the user during signup. Verifies the validity and uniqueness of user names and user email addresses, and checks email addresses against admin-provided domain whitelists and blacklists.


<?php wpmu_validate_user_signup($user_name$user_email); ?>


(string) (required) The login name provided by the user.
Default: None
(string) (required) The email address provided by the user.
Default: None

Return Value

Contains username, email, and error messages.



The hook 'wpmu_validate_user_signup' provides an easy way to modify the signup process. The value $result, which is passed to the hook, contains both the user-provided info and the error messages created by the function. 'wpmu_validate_user_signup' allows you to process the data in any way you'd like, and unset the relevant errors if necessary.

Change Log

Since: MU

Source File

wpmu_validate_user_signup() is located in wp-includes/ms-functions.php



See also index of Function Reference and index of Template Tags.