Filter: um_external_profile_url

apply_filters( 'um_external_profile_url', $profile_url, $slug ) → {string}

Filters user profile URL externally with own logic.

Parameters:
Name Type Description
$profile_url bool | string

Profile URL.

$slug string

User profile slug.

Since:
  • 2.6.3
Source:
Returns:

Profile URL.

Type
string
Example

Change profile URL to your custom link and ignore native profile permalink handlers.

function my_um_external_profile_url( $profile_url, $slug ) {
    $profile_url = '{some your custom URL}'; // replace to your custom link.
    return $profile_url;
}
add_filter( 'um_external_profile_url', 'my_um_external_profile_url', 10, 2 );