login_title
Filters the title tag content for login page.
Usage
add_filter( 'login_title', 'wp_kama_login_title_filter', 10, 2 ); /** * Function for `login_title` filter-hook. * * @param string $login_title The page title, with extra context added. * @param string $title The original page title. * * @return string */ function wp_kama_login_title_filter( $login_title, $title ){ // filter... return $login_title; }
- $login_title(string)
- The page title, with extra context added.
- $title(string)
- The original page title.
Changelog
Since 4.9.0 | Introduced. |
Where the hook is called
login_title
wp-login.php 91
$login_title = apply_filters( 'login_title', $login_title, $title );