HTTP/2 301
server: nginx
date: Fri, 26 Dec 2025 17:38:52 GMT
content-type: text/html; charset=UTF-8
x-olaf: ⛄
vary: accept, content-type
x-redirect-by: WordPress
location: https://developer.wordpress.org/reference/hooks/registration_redirect/
x-frame-options: SAMEORIGIN
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 2
HTTP/2 200
server: nginx
date: Fri, 26 Dec 2025 17:38:52 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
vary: accept, content-type
link:
; rel="https://api.w.org/"
link:
; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
x-frame-options: SAMEORIGIN
content-encoding: gzip
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 2
registration_redirect – Hook | Developer.WordPress.org
apply_filters ( ‘registration_redirect’, string $registration_redirect , int|WP_Error $errors )
Filters the registration redirect URL.
$registration_redirectstring The redirect destination URL.
$errorsint |WP_Error User id if registration was successful, WP_Error object otherwise.
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 .
Version Description 5.9.0 Added the $errors parameter. 3.0.0 Introduced.
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.