Filters the user registration URL.
Parameters
$registerstring- The user registration URL.
Source
return apply_filters( 'register_url', site_url( 'wp-login.php?action=register', 'login' ) );
Changelog
| Version | Description |
|---|---|
| 3.6.0 | Introduced. |
| CARVIEW |
Filters the user registration URL.
$registerstringregister_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' )
return apply_filters( 'register_url', site_url( 'wp-login.php?action=register', 'login' ) );
| Used by | Description |
|---|---|
wp_registration_url()wp-includes/general-template.php | Returns the URL that allows the user to register on the site. |
| Version | Description |
|---|---|
| 3.6.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
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.