Filter hook 'registration_errors'
in WP Core File wp-includes/user.php at line 3447
Description
Filters the errors encountered when a new user is being registered. The filtered WP_Error object may, for example, contain errors for an invalid or existing username or email address. A WP_Error object should always be returned, but may or may not contain errors. If any errors are present in $errors, this will abort the user's registration.
Occurrences
Filename |
Line Number |
wp-includes/user.php |
3447 |
Parameters
Type |
Name |
Description |
WP_Error |
$errors |
A WP_Error object containing any errors encountered during registration. |
string |
$sanitized_user_login |
User's username after it has been sanitized. |
string |
$user_email |
User's email. |
PHP Doc
/**
* Filters the errors encountered when a new user is being registered.
*
* The filtered WP_Error object may, for example, contain errors for an invalid
* or existing username or email address. A WP_Error object should always be returned,
* but may or may not contain errors.
*
* If any errors are present in $errors, this will abort the user's registration.
*
* @since 2.1.0
*
* @param WP_Error $errors A WP_Error object containing any errors encountered
* during registration.
* @param string $sanitized_user_login User's username after it has been sanitized.
* @param string $user_email User's email.
*/