Filters the message to display above the login form.
Parameters
$message
string- Login message text.
Source
$message = apply_filters( 'login_message', $message );
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |
Filters the message to display above the login form.
$message
string$message = apply_filters( 'login_message', $message );
Version | Description |
---|---|
2.1.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
Add additional message for
wp-login.php
An example
A plugin can register as a content filter with the code:
(From Codex)
Example:
Expanding upon Razon Komar Pal‘s code snippet.
I found that there are a few other instances that you might wish to show a specific message or not show any additional messages if the provided one is great.
Be careful! There is another filter, with a similar description, but applied in a different place!
https://developer.wordpress.org/reference/hooks/login_messages/
THAT filter, is for example useful when you want to change the message on the “check mail” screen after a registration.