Get host attributes via the user ID

Hi
Im trying to get some hosts attribute info by retrieving them via WordPress user meta but was unsuccessful, any suggestions?
Thanks

Hi,

Please note that the host is a custom post type hp_vendor where the user ID is specified in the post_author field. We can also provide a sample PHP snippet, but please specify what input you are currently using (e.g. user ID).

Thanks for your swift response
I currently have the user ID, from this I need to get their host attribute, (user Id > host > attribute)
if you can provide me with a small sample of a code snippet this will really be helpful

Thanks again and congrats for standing behind your product :raising_hands::raising_hands:

Please try this sample code snippet:

$vendor=\HivePress\Models\Vendor::query()->filter([ 'user' => $user_id ])->get_first();

if($vendor) {
    $anyattribute=$vendor->get_anyattribute();
}