Filter: um_locate_user_profile_not_loggedin__redirect

apply_filters( 'um_locate_user_profile_not_loggedin__redirect', $url ) → {string}

Filters the redirect URL from user profile for not logged-in user.

Parameters:
Name Type Description
$url string

Redirect URL. By default, it's a home page.

Since:
  • 1.3.x
Source:
Returns:

Redirect URL.

Type
string
Example

Change redirect URL from user profile for not logged-in user to WordPress native login.

function my_user_profile_not_loggedin__redirect( $url ) {
    // your code here
    $url = wp_login_url();
    return $url;
}
add_filter( 'um_locate_user_profile_not_loggedin__redirect', 'my_user_profile_not_loggedin__redirect' );