Integration with Geomywp
-
I am planning on using this plugin to import user X-profile address field generated by combination of Geomywp plugin and it’s add-on https://geomywp.com/add-ons/xprofile-fields/
I understand I need to get pro plugin for this
Here is message I received from plugin author regarding import using your plugin“What you need to do is look in the importer that you are using for a hook that “runs” after each imported member. You need to use this hook to “execute” a function that will “grab” the address of the imported member, I assume from an xprofile field, geocode this address and save the data in the database.
There is actually a function provided by GEO my WP which does all the process of geocoding an address and saving it in database. the functions is:
gmw_update_user_location( array( 'user_id' => $user_id, 'address' => $address ) );
You need to pass the user ID and his address to the function and the function should geocode it.
So basically you will need to find the right hook in the imported and use it to execute the function above.”Can you suggest the best place to add this hook in the plug-in.
Thanks/ Shaunik
- The topic ‘Integration with Geomywp’ is closed to new replies.