login_title
Filter HookDescription
Filters the title tag content for login page.Hook Information
| File Location |
wp-login.php
View on GitHub
|
| Hook Type | Filter |
| Line Number | 91 |
Hook Parameters
| Type | Name | Description |
|---|---|---|
string
|
$login_title
|
The page title, with extra context added. |
string
|
$title
|
The original page title. |
Usage Examples
Basic Usage
<?php
// Hook into login_title
add_filter('login_title', 'my_custom_filter', 10, 2);
function my_custom_filter($login_title, $title) {
// Your custom filtering logic here
return $login_title;
}
Source Code Context
wp-login.php:91
- How this hook is used in WordPress core
<?php
86 * @since 4.9.0
87 *
88 * @param string $login_title The page title, with extra context added.
89 * @param string $title The original page title.
90 */
91 $login_title = apply_filters( 'login_title', $login_title, $title );
92
93 ?><!DOCTYPE html>
94 <html <?php language_attributes(); ?>>
95 <head>
96 <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
PHP Documentation
<?php
/**
* Filters the title tag content for login page.
*
* @since 4.9.0
*
* @param string $login_title The page title, with extra context added.
* @param string $title The original page title.
*/
Quick Info
- Hook Type: Filter
- Parameters: 2
- File: wp-login.php
Related Hooks
Related hooks will be displayed here in future updates.