wp_login_errors WordPress Filter Hook
The wp_login_errors hook is used to display errors during the login process. This hook is executed before the login form is displayed, so it can be used to display custom error messages.
apply_filters( 'wp_login_errors', WP_Error $errors , string $redirect_to ) #
Filters the login page errors.
Contents
Parameters
- $errors
(WP_Error)WP Error object.
- $redirect_to
(string)Redirect destination URL.
Source
File: wp-login.php
Changelog
| Version | Description |
|---|---|
| 3.6.0 | Introduced. |