login_message WordPress Filter Hook
The login_message hook is triggered when a user logs in to their account on your Wordpress site. This hook can be used to display a custom message to the user, or to perform any other actions that you want to happen when a user logs in.
apply_filters( 'login_message', string $message ) #
Filters the message to display above the login form.
Parameters
- $message
(string)Login message text.
More Information
The “login_message” filter is used to filter the message displayed on the WordPress login page above the login form. This filter can return HTML markup.
Source
File: wp-login.php
Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |