In your functions/api.php change this
$link=apply_filters('userpro_user_profile_url', $link, $user_id);
To:
if ($request == 'profile' || $request == 'view';) {
$link=apply_filters('userpro_user_profile_url', $link, $user_id);
}
This will affect only profile permalinks and keep login, register, other pages un-affected.
Leave A Comment?