徽标写入CSS,链接文本和目标可过滤:
105 /**
106 * Filter link URL of the header logo above login form.
107 *
108 * @since 2.1.0
109 *
110 * @param string $login_header_url Login header logo URL.
111 */
112 $login_header_url = apply_filters( \'login_headerurl\', $login_header_url );
113 /**
114 * Filter the title attribute of the header logo above login form.
115 *
116 * @since 2.1.0
117 *
118 * @param string $login_header_title Login header logo title attribute.
119 */
120 $login_header_title = apply_filters( \'login_headertitle\', $login_header_title );
https://core.trac.wordpress.org/browser/tags/3.8.1/src/wp-login.php#L89
例如:
function alter_login_headerurl() {
return \'http://example.com\';
}
add_action(\'login_headerurl\',\'alter_login_headerurl\');
function alter_login_headertitle() {
return \'Yay\';
}
add_action(\'login_headertitle\',\'alter_login_headertitle\');
更改图像
enqueue
a login stylesheet 并覆盖上的背景图像
.login h1 a
.