Title: login_headerurl
Published: April 25, 2014
Last modified: August 20, 2026

---

# apply_filters( ‘login_headerurl’, string $login_header_url )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/login_headerurl/?output_format=md#parameters)
 * [More Information](https://developer.wordpress.org/reference/hooks/login_headerurl/?output_format=md#more-information)
 * [Source](https://developer.wordpress.org/reference/hooks/login_headerurl/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/login_headerurl/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/login_headerurl/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/hooks/login_headerurl/?output_format=md#user-contributed-notes)

Filters link URL of the header logo above login form.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/login_headerurl/?output_format=md#parameters)󠁿

 `$login_header_url`string

Login header logo URL.

## 󠀁[More Information](https://developer.wordpress.org/reference/hooks/login_headerurl/?output_format=md#more-information)󠁿

The **“login_headerurl”** filter is used to filter the URL of the logo on the WordPress
login page. By default, this logo links to the WordPress site.

A plugin can register as a content filter with the code:

    ```php
    add_filter("login_headerurl","plugin_function_name");
    ```

Where “plugin_function_name” is the function WordPress should call when the content
is being retrieved. Note that the filter function the plugin defines **must** return
the URL after it is finished processing, or the logo may not have any links, and
other plugins also filtering the same may generate errors.

You can also use this in the theme function.php file within your WordPress page 
if you don’t wish to use a plugin or want to distribute your theme.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/login_headerurl/?output_format=md#source)󠁿

    ```php
    $login_header_url = apply_filters( 'login_headerurl', $login_header_url );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-login.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-login.php#L138)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-login.php#L138-L138)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/login_headerurl/?output_format=md#related)󠁿

| Used by | Description | 
| [login_header()](https://developer.wordpress.org/reference/functions/login_header/)`wp-login.php` |

Outputs the login page header.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/login_headerurl/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.1.0](https://developer.wordpress.org/reference/since/2.1.0/) | Introduced. |

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/hooks/login_headerurl/?output_format=md#user-contributed-notes)󠁿

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/hooks/login_headerurl/?output_format=md#comment-content-3131)
 2.   [Jose Lazo](https://profiles.wordpress.org/jose-lazo/)  [  8 years ago  ](https://developer.wordpress.org/reference/hooks/login_headerurl/#comment-3131)
 3. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Flogin_headerurl%2F%23comment-3131)
    Vote results for this note: 3[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Flogin_headerurl%2F%23comment-3131)
 4. In the below example the logo’s default link is changed to the site url.
 5.     ```php
        /**
         * Custom login image URL
         */
        function my_custom_login_url( $url ) {
        	return get_bloginfo( 'url' );
        }
        add_filter( 'login_headerurl', 'my_custom_login_url', 10, 1 );
        ```
    
 6.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Flogin_headerurl%2F%3Freplytocom%3D3131%23feedback-editor-3131)

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Flogin_headerurl%2F)
before being able to contribute a note or feedback.