apply_filters( 'login_errors', string $errors )
Filters the error messages displayed above the login form.
Parameters
-
$errors
string -
Login error message.
Source
File: wp-login.php
.
View all references
echo '<div id="login_error">' . apply_filters( 'login_errors', $errors ) . "</div>\n";
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Example migrated from Codex:
The following callback removes the ‘password reminder’ link from the two main login error messages.
Top ↑
Feedback
This gives me an Exception (Call to a member function get_error_codes() on null). — By lilmofo —