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.


Top ↑

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.


Top ↑

Source

File: wp-login.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by the Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.