We have resolved this issue via email. Here is the solution in case anyone is interested in:
The solution is using some hook to output the shortcode dynamically, like this:
// We're adding a shortcode dynamically to a specific page
add_filter( 'the_content', function( $content ) {
if ( ! is_page() || 123 !== get_the_ID() ) {
return $content;
}
// We pass user ID via URL
$user_id = isset( $_GET['user_id'] ) ? $_GET['user_id'] : '';
// Create shortcode dynamically
$shortcode = '[mb_user_profile_info id="your-meta-box-id" user_id="' . $user_id . '"]';
return $content . do_shortcode( $shortcode );
} );
So, you can create a page like /edit-user/ and pass user ID via URL like this: /edit-user/?user_id=123