Filter: um_login_redirect_url

apply_filters( 'um_login_redirect_url', $can_view, $user_id ) → {string}

Filters change redirect URL after successful login.

Parameters:
Name Type Description
$can_view string

Redirect URL.

$user_id int

User ID.

Since:
  • 2.0
Source:
Returns:

Redirect URL.

Type
string
Example

Change redirect URL.

function my_login_redirect_url( $url, $id ) {
    // your code here
    return $url;
}
add_filter( 'um_login_redirect_url', 'my_login_redirect_url', 10, 2 );