WordPress.org

Ready to get started?Download WordPress

Codex

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.

Contents

Description

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.

Usage

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

Parameters

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

Return Value

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

Examples


Notes

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

Related

 

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