Bringing over name from WordPress

There’s some information about how to do in this post, and the posts that follow it: SSO Avatar Not Updating

Assuming that get_user_meta($user->ID, 'mepr_custom_avatar', true) returns the absolute URL to the avatar, this should work.

add_filter( 'wpdc_sso_avatar_url', 'my_namespace_use_custom_avatar', 10, 2 );
function my_namespace_use_custom_avatar( $avatar_url, $user_id ) {
    if ( get_user_meta( $user_id, 'mepr_custom_avatar', true ) ) {
        $avatar_url = get_user_meta( $user_id, 'mepr_custom_avatar', true);
    }

    return $avatar_url;
}

If it’s not returning the absolute URL (starting with http(s)://yourdomain.com) you’ll need to append that to the URL so that Discourse can access it.