um_localize_permalink_filter

Hook type

Filter

Description

Change user profile URL

Parameters

$profile_url

(string) Profile URL

$page_id

(int) Profile Page ID

Usage

<?php add_filter( 'um_localize_permalink_filter', 'function_name', 10, 2 ); ?>

Examples

<?php
add_filter( 'um_localize_permalink_filter', 'my_localize_permalink', 10, 2 );
function my_localize_permalink( $profile_url, $page_id ) {
    // your code here
return $profile_url;
}
?>

Change Log

Since: 2.0

Source

um_localize_permalink_filter is located in includes/core/class-permalinks.php::line 391