• About WordPress
    • About WordPress
    • WordPress.org
    • Documentation
    • Support
    • Feedback
  • Log In
  • Register
WordPress.org
WordPress.org
  • Plugins
  • Themes
  • Patterns
  • Learn
  • Support
    • Documentation
    • Forums
  • News
  • About
  • Get Involved
    • Five for the Future
  • Showcase
  • Mobile
  • Hosting
  • Openverse
  • Get WordPress
Get WordPress

Code Reference

Skip to content
Filter by type:
Search
Browse: Home / Reference / Hooks / login_title

apply_filters( 'login_title', string $login_title, string $title )

Filters the title tag content for login page.

Contents

  • Parameters
  • Source
  • Related
    • Used By
  • Changelog
  • User Contributed Notes

Parameters

$login_title

(string) The page title, with extra context added.

$title

(string) The original page title.


Top ↑

Source

File: wp-login.php

View on Trac


Top ↑

Related

Top ↑

Used By

Used By
Used By Description
wp-login.php: login_header()

Output the login page header.


Top ↑

Changelog

Changelog
Version Description
4.9.0 Introduced.

Top ↑

User Contributed Notes

  1. Skip to note 1 content
    You must log in to vote on the helpfulness of this noteVote results for this note: 0You must log in to vote on the helpfulness of this note
    Contributed by Michael Bragg — 9 months ago

    Change the title tag content used on the login page.

    When using the `wp-login.php` for user login. You may wish to rebrand the title shown in the brower tab to include extra branding.

    /**
     * Change login page title tag content.
     *
     * @param string $login_title The page title, with extra context added.
     * @param string $title       The original page title.
     *
     * @return string Modified login title string.
     */
    function wpdocs_login_title( $login_title, $title ) {
    	$login_title = $title . ' ‹ ' . get_bloginfo( 'name' ) . '— Powered by WordPress';
    	return $login_title;
    }
    
    add_filter( 'login_title', 'wpdocs_login_title' ), 10, 2 );
    

    Expand full source codeCollapse full source code

    Log in to add feedback

You must log in before being able to contribute a note or feedback.

  • About
  • News
  • Hosting
  • Donate
  • Support
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
Code is Poetry

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.