apply_filters( ‘login_title’, string $login_title, string $title )

Filters the title tag content for login page.

Parameters

$login_titlestring
The page title, with extra context added.
$titlestring
The original page title.

Source

$login_title = apply_filters( 'login_title', $login_title, $title );

Changelog

VersionDescription
4.9.0Introduced.

User Contributed Notes

  1. Skip to note 2 content

    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 );

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