apply_filters( 'register_url', string $register )

Filters the user registration URL.


Parameters Parameters

$register

(string) The user registration URL.



Top ↑

Source Source

File: wp-includes/general-template.php

View on Trac


Top ↑

Changelog 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/";
    }

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