Sorry, there’s no simple code snippet for this, it would require a custom implementation. But as another solution, you can try to use HivePress function to get information from the database. For example, if you want to get the vendor from the database by vendor id, then please try this PHP code snippet
Please try to assign \HivePress\Models\Vendor::query()->get_by_id(vendor_id_here); to some variable and then get information from this object in this way
Please note that it can require further customization. If you are not familiar with the code customization then please consider hiring someone for custom work https://fvrr.co/32e7LvY
Also, please do not make direct changes in core files like function.php, as it will be lost on updates. Please try to use the Code Snippets plugin or the child theme instead
Please note that it can require further customization. If you are not familiar with the code customization, then please consider hiring someone for custom work https://fvrr.co/32e7LvY