Skip to content

Instantly share code, notes, and snippets.

View lowv-developer's full-sized avatar

Stavros lowv-developer

  • Athens, GR
View GitHub Profile
@lowv-developer
lowv-developer / recalculate-acf-locations.php
Created September 9, 2020 17:18 — forked from RadGH/recalculate-acf-locations.php
Get latitude and longitude for addresses saved in Advanced Custom Fields, using Google's GeoLocation API
<?php
global $acf_recalc_settings;
// IMPORTANT: Customize these settings for your website.
$acf_recalc_settings = array(
// How many updates to do each page load. As of November 2018, Google's GeoLocation API limit is 100 per second.
'posts_per_run' => 16,