do_action( 'um_after_email_confirmation_redirect', $redirect, $user_id, $login )
Filter to change the redirect URL after email confirmation.
Parameters:
Name | Type | Description |
---|---|---|
$redirect |
string | The redirect URL. |
$user_id |
int | The user ID. |
$login |
bool | Auto login has been applied and user currently is logged in. |
- Since:
- 2.0
- Source:
Example
Change redirect after confirmation only for the user with ID=99.
function my_after_email_confirmation_redirect( $redirect, $user_id, $login ) {
// your code here
if ( $user_id === 99 ) {
$redirect = 'custom_url';
}
return $redirect;
}
add_filter( 'um_after_email_confirmation_redirect', 'my_after_email_confirmation_redirect', 10, 3 );