register_url WordPress Filter Hook
The register_url Wordpress hook allows you to register a new URL with Wordpress. This can be useful if you want to add a custom URL to your Wordpress site, or if you want to change an existing URL.
apply_filters( 'register_url', string $register ) #
Filters the user registration URL.
Parameters
- $register
(string)The user registration URL.
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' )Source
Changelog
| Version | Description |
|---|---|
| 3.6.0 | Introduced. |