apply_filters( 'um_localize_permalink_filter', $profile_url, $page_id ) → {string}
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:
- 2.6.3 Use 'post_link' instead.
- Source:
- To Do:
-
- fully remove since 2.7.0
Returns:
Profile URL.
- Type
- string
Example
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 );