WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/login header

Description

Outputs the header for the login page.

Usage

<?php login_header($title, $message, $wp_error) ?>

Parameters

$title
(string) (optional) Login In Page title to display in <title/> element.
Default: 'Log In'
$message
(string) (optional) Message to display in header
Default: ""
$wp_error
(WP_Error) (optional) WordPress Error Object
Default: WP_Error

Examples

From wp_login.php:

<?php
$errors = new WP_Error();
...e 
login_header(__('Reset Password'), '<p class="message reset-pass">' . __('Enter your new password below.') . '</p>', $errors );
?>

Default Usage

Actions

  • Calls login_head for outputting HTML in the Log In header.

Filters

  • Calls login_headerurl for the top login link.
  • Calls login_headertitle for the top login title.
  • Calls login_message on the message to display in the header.
  • Calls login_errors on the display of the error messages.
  • Calls login_body_class on the array of class names used for the login page body, additionally passing the $action.

Change Log

Source File

login_header() is located in wp-login.php

Related