login_headerurl
Allows you to change the URL of the logo link above the registration/login form. By default, the link points to wordpress.org.
Usage
add_filter( 'login_headerurl', 'wp_kama_login_headerurl_filter' );
/**
* Function for `login_headerurl` filter-hook.
*
* @param string $login_header_url Login header logo URL.
*
* @return string
*/
function wp_kama_login_headerurl_filter( $login_header_url ){
// filter...
return $login_header_url;
}
- $login_header_url(string)
- The logo link.
Examples
#1 Replace the wordpress.org link with the site URL
add_filter( 'login_headerurl', 'change_login_header_url' );
function change_login_header_url() {
return home_url();
}Changelog
| Since 2.1.0 | Introduced. |
Where the hook is called
login_headerurl
wp-login.php 138
$login_header_url = apply_filters( 'login_headerurl', $login_header_url );