Title: register
Published: April 25, 2014
Last modified: February 24, 2026

---

# apply_filters( ‘register’, string $link )

## In this article

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

[ Back to top](https://developer.wordpress.org/reference/hooks/register/?output_format=md#wp--skip-link--target)

Filters the HTML link to the Registration or Admin page.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/register/?output_format=md#description)󠁿

Users are sent to the admin page if logged-in, or the registration page if enabled
and logged-out.

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

 `$link`string

The HTML code for the link to the Registration or Admin page.

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

The hook filters the HTML link to the Registration or Admin page. Users are sent
to the admin page if logged-in, or the registration page if enabled and logged-out.

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

    ```php
    $link = apply_filters( 'register', $link );
    ```

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

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

| Used by | Description | 
| [wp_register()](https://developer.wordpress.org/reference/functions/wp_register/)`wp-includes/general-template.php` |

Displays the Registration or Admin link.

  |

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

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

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

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/hooks/register/?output_format=md#comment-content-4647)
 2.   [Steven Lin](https://profiles.wordpress.org/stevenlinx/)  [  5 years ago  ](https://developer.wordpress.org/reference/hooks/register/#comment-4647)
 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%2Fregister%2F%23comment-4647)
    Vote results for this note: 0[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%2Fregister%2F%23comment-4647)
 4. Example migrated from Codex:
 5. Change the register link
 6.     ```php
        add_filter( 'register', 'my_register_link' );
    
        function my_register_link( $link ) {
            return 'http://exampledomain.com/my_register_page/';
        }
        ```
    
 7.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fregister%2F%3Freplytocom%3D4647%23feedback-editor-4647)

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