wp_login_errors filter-hookWP 3.6.0

Filters the login page errors.

Usage

add_filter( 'wp_login_errors', 'wp_kama_login_errors_filter', 10, 2 );

/**
 * Function for `wp_login_errors` filter-hook.
 * 
 * @param WP_Error $errors      WP Error object.
 * @param string   $redirect_to Redirect destination URL.
 *
 * @return WP_Error
 */
function wp_kama_login_errors_filter( $errors, $redirect_to ){

	// filter...
	return $errors;
}
$errors(WP_Error)
WP Error object.
$redirect_to(string)
Redirect destination URL.

Changelog

Since 3.6.0 Introduced.

Where the hook is called

In file: /wp-login.php
wp_login_errors
wp-login.php 1376
$errors = apply_filters( 'wp_login_errors', $errors, $redirect_to );
wp-login.php 1139
$errors = apply_filters( 'wp_login_errors', $errors, $redirect_to );

Where the hook is used in WordPress

Usage not found.