You could achieve this using worpdpress shortcode api.
Create a shortcode which will return the links with the dynamic parameter.
Then you can use the shortcode where needs to be used.
Here is an example. creating a shortcode [user_data_link]
<?php
// Function to generate link with user data
function generate_link_with_user_data_shortcode() {
// Retrieve the current user's data
$current_user = wp_get_current_user();
$user_data_value = get_user_meta($current_user->ID, 'your_custom_field_name', true); // Change 'your_custom_field_name' to the actual meta key of your custom field
// Construct the link with the user data value
$link_url = home_url('/page?VALUE=' . urlencode($user_data_value));
// Return the link HTML
return '<a href="' . esc_url($link_url) . '">Link with User Data</a>';
}
// Register the shortcode
add_shortcode('user_data_link', 'generate_link_with_user_data_shortcode');
?>