wpmu_validate_user_signup
Filter HookDescription
Filters the validated user registration details. 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. }Hook Information
File Location |
wp-includes/ms-functions.php
View on GitHub
|
Hook Type | Filter |
Line Number | 601 |
Hook Parameters
Type | Name | Description |
---|---|---|
array
|
$result
|
{ The array of user name, email, and the error messages. |
Usage Examples
Basic Usage
<?php
// Hook into wpmu_validate_user_signup
add_filter('wpmu_validate_user_signup', 'my_custom_filter', 10, 1);
function my_custom_filter($result) {
// Your custom filtering logic here
return $result;
}
Source Code Context
wp-includes/ms-functions.php:601
- How this hook is used in WordPress core
<?php
596 * @type string $orig_username Original username.
597 * @type string $user_email User email address.
598 * @type WP_Error $errors WP_Error object containing any errors found.
599 * }
600 */
601 return apply_filters( 'wpmu_validate_user_signup', $result );
602 }
603
604 /**
605 * Processes new site registrations.
606 *
PHP Documentation
<?php
/**
* Filters the validated user registration details.
*
* 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.
*
* @since MU (3.0.0)
*
* @param array $result {
* The array of user name, email, and the error messages.
*
* @type string $user_name Sanitized and unique username.
* @type string $orig_username Original username.
* @type string $user_email User email address.
* @type WP_Error $errors WP_Error object containing any errors found.
* }
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/ms-functions.php
Related Hooks
Related hooks will be displayed here in future updates.