Skip to content

Instantly share code, notes, and snippets.

Avatar

Stavros lowv-developer

  • Athens, GR
View GitHub Profile
@lowv-developer
lowv-developer / recalculate-acf-locations.php
Created Sep 9, 2020 — forked from RadGH/recalculate-acf-locations.php
Get latitude and longitude for addresses saved in Advanced Custom Fields, using Google's GeoLocation API
View recalculate-acf-locations.php
<?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,