login_messages filter-hookWP 2.5.0

Filters instructional messages displayed above the login form.

Usage

add_filter( 'login_messages', 'wp_kama_login_messages_filter' );

/**
 * Function for `login_messages` filter-hook.
 * 
 * @param string $messages Login messages.
 *
 * @return string
 */
function wp_kama_login_messages_filter( $messages ){

	// filter...
	return $messages;
}
$messages(string)
Login messages.

Changelog

Since 2.5.0 Introduced.

Where the hook is called

login_header()
login_messages
wp-login.php 264
echo '<p class="message">' . apply_filters( 'login_messages', $messages ) . "</p>\n";

Where the hook is used in WordPress

Usage not found.