apply_filters( 'register_url', string $register )

Filters the user registration URL.

Parameters Parameters


(string) The user registration URL.

Top ↑

More Information More Information

register_url is a filter applied to the URL returned by the function 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() using the ‘login’ $scheme:

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

Top ↑

Source Source

File: wp-includes/general-template.php

View on Trac

Top ↑

Changelog Changelog

Version Description
3.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

  1. Skip to note 1 content
    Contributed by Abdul Wahab

    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.

    add_filter( 'register_url', 'change_my_register_url' );
    function change_my_register_url( $url ) {
        if( is_admin() ) {
            return $url;
        return "/custom-register-url/";

Top ↑

You must log in before being able to contribute a note or feedback.