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

---

# apply_filters( ‘register_url’, string $register )

## In this article

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

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

Filters the user registration URL.

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

 `$register`string

The user registration URL.

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

register_url is a filter applied to the URL returned by the function [wp_registration_url()](https://developer.wordpress.org/reference/functions/wp_registration_url/)
which allows you to have that function direct users to a specific (different) URL
for registration.

The URL that is passed to this filter is generated by [site_url()](https://developer.wordpress.org/reference/functions/site_url/)
using the ‘login’ $scheme:

    ```wp-block-code
    site_url( 'wp-login.php?action=register', 'login' )
    ```

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

    ```php
    return apply_filters( 'register_url', site_url( 'wp-login.php?action=register', 'login' ) );
    ```

[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#L485)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/general-template.php#L485-L485)

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

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

Returns the URL that allows the user to register on the site.

  |

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

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

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

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/hooks/register_url/?output_format=md#comment-content-3452)
 2.   [Abdul Wahab](https://profiles.wordpress.org/abdulwahab610/)  [  7 years ago  ](https://developer.wordpress.org/reference/hooks/register_url/#comment-3452)
 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_url%2F%23comment-3452)
    Vote results for this note: 4[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_url%2F%23comment-3452)
 4. Do you want to use a custom registration page? Modify the registration page URL
    using `register_url`.
     Update the link with your actual registration page URL.
 5.     ```php
        add_filter( 'register_url', 'change_my_register_url' );
        function change_my_register_url( $url ) {
            if( is_admin() ) {
                return $url;
            }
            return "/custom-register-url/";
        }
        ```
    
 6.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fregister_url%2F%3Freplytocom%3D3452%23feedback-editor-3452)

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