Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 130709

geocoding a prefilled location

$
0
0

Replies: 1

I am using your plugin to provide a geocoded location for users, and I am starting to prepopulate the fields with those provided by a social network IE Facebook, Amazon, LinkedIn.

Whilst I can can save the items directly to the xprofile field that is used, is there a hook/action/function I can call so that when these items are pre-populated they can be geocoded with the first item in the list?

I am thinking I will have to tell my users to verify the information by clicking on the dropdown so that it will then use the first item in the list to geocode the location, geocode it and save it when they save their profile information.

Currently I use the following to save the data

xprofile_set_field_data('Suburb', $user_id, $location);


Viewing all articles
Browse latest Browse all 130709

Trending Articles