Filter
rpress_register_redirect
On this page
Filters the URL a customer is redirected to after registering.
Runs in rpress_process_register_form after validation passed and before the new user is created and logged in. The default is the redirect value submitted with the registration form.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$redirect | string | The redirect URL submitted with the registration form. |
Return value#
string. The URL to redirect to.
Example#
function my_register_redirect( $redirect ) {
return home_url( '/welcome/' );
}
add_filter( 'rpress_register_redirect', 'my_register_redirect' );
Source#
Applied in:
includes/login-register.php(line 153), inrpress_process_register_form()
See also#
Was this page helpful?
