login_errors filter-hookWP 2.1.0

Filters the error messages displayed above the login form.

Usage

add_filter( 'login_errors', 'wp_kama_login_errors_filter' );

/**
 * Function for `login_errors` filter-hook.
 * 
 * @param string $errors Login error messages.
 *
 * @return string
 */
function wp_kama_login_errors_filter( $errors ){

	// filter...
	return $errors;
}
$errors(string)
Login error messages.

Changelog

Since 2.1.0 Introduced.

Where the hook is called

login_header()
login_errors
wp-login.php 270
$errors = apply_filters( 'login_errors', $errors );

Where the hook is used in WordPress

Usage not found.