Filter: um_logout_redirect_url

apply_filters( 'um_logout_redirect_url', $logout_redirect_url, $user_id ) → {string}

Filters URL for redirect after logout.

Parameters:
Name Type Description
$logout_redirect_url string

URL for redirect after logout.

$user_id int

User ID who logged out.

Since:
  • 2.0
Source:
Returns:

Redirect URL.

Type
string
Example

Change URL for redirect after logout.

function my_logout_redirect_url( $logout_redirect_url, $user_id ) {
    return '{your_custom_url}';
}
add_filter( 'um_logout_redirect_url', 'my_logout_redirect_url', 10, 2 );