Filter: um_localize_permalink_filter

Filters the base URL of the UM profile page.

Parameters:
Name Type Description
$profile_url string

Profile URL.

$page_id int

Profile Page ID.

Since:
  • 1.3.x
Deprecated:
Source:
To Do:
  • fully remove since 2.7.0
Returns:

Profile URL.

Type
string
Example

Change profile base URL to your custom link.

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