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
.
View all references
$redirect_to = apply_filters( 'registration_redirect', $registration_redirect, $errors );
Changelog
Version | Description |
---|---|
5.9.0 | Added the $errors parameter. |
3.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Examples
This simple example will redirect a user to the home_url() upon successful registration.
Example Migrated from Codex:
This simple example will redirect a user to the home_url() upon successful registration.