WordPress at Your Fingertips
filter is not described

registration_errors filter-hook . WP 2.1.0

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.


add_filter( 'registration_errors', 'filter_function_name_2097', 10, 3 );
function filter_function_name_2097( $errors, $sanitized_user_login, $user_email ){
	// filter...

	return $errors;
A WP_Error object containing any errors encountered during registration.
User's username after it has been sanitized.
User's email.


Since 2.1.0 Introduced.

Where the hook is called

wp-includes/user.php 2979
$errors = apply_filters( 'registration_errors', $errors, $sanitized_user_login, $user_email );

Where in WP core the hook is used WordPress

Usage not found.