apply_filters( 'wpmu_validate_user_signup', array $result )

Filters the validated user registration details.

Description

This does not allow you to override the username or email of the user during registration. The values are solely used for validation and error handling.

Parameters

$result

(array) The array of user name, email, and the error messages.

  • 'user_name'
    (string) Sanitized and unique username.
  • 'orig_username'
    (string) Original username.
  • 'user_email'
    (string) User email address.
  • 'errors'
    (WP_Error) WP_Error object containing any errors found.

Source

File: wp-includes/ms-functions.php

View on Trac

Changelog

Version Description
MU (3.0.0) Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wpmu_validate_user_signup