Could this piece of code also be modified (with a cookie placement for instance) so it auto-triggers the find-location-function only if there’s been no location set yet? So if the user enters a city name in the field and returns to the page later, the find-location function won’t be triggered? Or that it’s only triggered on first visit?
Thanks for your reply in advance!
Kind regards, Emiel.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Clients need flexibility. Developers need a repeatable workflow that doesn’t have a steep learning curve. See how digital marketing agency Noiza found both with Advanced Custom Fields in our latest case study.https://t.co/BxQAy6COJt