Filter: um_wp_safe_redirect_fallback

apply_filters( 'um_wp_safe_redirect_fallback', $url, $default_fallback, $status ) → {string}

Filters change fallback URL. When wp_safe_redirect() function is used for the Ultimate Member frontend redirects. It's home_url() by default.

Parameters:
Name Type Description
$url string

UM Fallback URL.

$default_fallback string

Default fallback URL.

$status string

Redirect status.

Since:
  • 2.6.8
Source:
Returns:

Fallback URL.

Type
string
Example

Change fallback URL.

function my_um_wp_safe_redirect_fallback( $url, $status ) {
    // your code here
    return $url;
}
add_filter( 'um_wp_safe_redirect_fallback', 'my_um_wp_safe_redirect_fallback', 10, 2 );