login_title

最后更新于:2021-11-27 04:50:04

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

Filters the title tag content for login page.

参数

$login_title

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

$title

(string)
The original page title.

源文件

文件: gc-login.php

View on Trac

/**
 * 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 gcdocs_login_title( $login_title, $title ) {
	$login_title = $title . ' ‹ ' . get_bloginfo( 'name' ) . '— Powered by GeChiUI';
	return $login_title;
}

add_filter( 'login_title', 'gcdocs_login_title' ), 10, 2 );