apply_filters( ‘registration_redirect’, string $registration_redirect, int|WP_Error $errors )

Filters the registration redirect URL.

Parameters

$registration_redirectstring
The redirect destination URL.
$errorsint|WP_Error
User id if registration was successful, WP_Error object otherwise.

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

$redirect_to = apply_filters( 'registration_redirect', $registration_redirect, $errors );

Changelog

VersionDescription
5.9.0Added the $errors parameter.
3.0.0Introduced.

User Contributed Notes

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