Adding a location attribute for a regular user

I’d like to add a location attribute for a regular user. I create a location attribute for the user but it just loads a regular text field on the account edit screen. I would like it be geolocation enabled like it is for the vendor. Is this possible? I know it involved a couple of hidden fields, etc.

Hi,

Unfortunately, there’s no such feature, it would require a custom implementation. If you are familiar with coding or have a developer, we can provide general guidance. Let us know if it works for you.

Yes I can code. Please provide an guidance you can. Thanks.

Please try using hivepress/v1/models/user/attributes filter hook, this way you can add 3 attributes (location, latitude and longitude). If you add attributes in the same way hivepress-geolocation/includes/components/class-geolocation.php at master · hivepress/hivepress-geolocation · GitHub then the Location field should appear in the user profile form.

Hope this helps