wpmu_validate_user_signup WordPress Filter Hook

The wpmu_validate_user_signup hook is used to validate new user signups on a WordPress Multisite installation. This hook is called before a new user is created, and can be used to cancel the user creation if necessary.

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.


Top ↑

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.


Top ↑

Source

File: wp-includes/ms-functions.php

View on Trac



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.

Show More