• Resolved Jean-Luc Vanhulst

    (@jlvanhulst)


    Hi,

    I am using a webhook to update/add stores automatically. Is there a function I can hook into to execute automatically upon update/create to force long/lat to be added?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    You can call this function to grab the coordinates, you do need to pass the used address.

    Thread Starter Jean-Luc Vanhulst

    (@jlvanhulst)

    Thanks – in the automated process it would ideally be a function that takes the post_id as the parameter. The store is created, saved and have the address in it, – I have the wpsl_id. So ideally I would do something like wpsl_update_address_latlng(<post_id>)
    which would read the address, get lat/lng and update them in the post.

    I guess I’ll have to write that one, would you consider adding to the codebase?

    Plugin Author Tijmen Smit

    (@tijmensmit)

    It’s indeed a good idea to also create a function that takes an id and actually adds it to the database. I do plan to add functions like that to the next major update that I’m currently working on, so this will be included anyway.

    Thread Starter Jean-Luc Vanhulst

    (@jlvanhulst)

    Tijmen,

    Any news on this – anything I could test/try?

    Thanks – dankjewel

    JL

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘force geolocate when adding store through webhook?’ is closed to new replies.