registration_redirect WordPress Filter Hook
The registration_redirect Wordpress hook allows you to redirect a user after they register for a new account. This can be useful for directing users to a specific page or for providing a custom registration experience.
apply_filters( 'registration_redirect', string $registration_redirect , int|WP_Error $errors ) #
Filters the registration redirect URL.
Parameters
More Information
- The registration redirect filter is used to change the location redirected to after a user registers. This could be the location set by the “redirect_to” parameter sent to the registration page.
- This filter is to redirect the user following registration. To filter the location of the registration page itself, use register_url.
Source
File: wp-login.php
Changelog
Version | Description |
---|---|
5.9.0 | Added the $errors parameter. |
3.0.0 | Introduced. |