WordPress at a glance
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_6126', 10, 3 );
function filter_function_name_6126( $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.

Список изменений

С версии 2.1.0 Введена.

Где вызывается хук

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

Где используется хук в ядре WP

Использование не найдено.