Does filterPostie.php work with update_post_meta or just add_post_meta? The WP codex says that you can call update_post_meta and if it doesn’t find anything to update, it will fall back on add_post_meta, but that does’t seem to be happening in my filterPostie.php. I’m calling a function from another plugin that uses update instead of add.
The Geo My WP plugin is premium, so I don’t think I can share their code without breaking the license agreement. Internally, it runs a series of update_post_meta calls, then it executes its own query to drop location data into wp_places_locator. Neither of these seems to work when I call gmw_pt_update_location() within filterPostie.php, but I don’t get any PHP errors either. If the post ID is false when it runs, it gracefully exits.
It works perfectly now. Thanks! I’ve updated the code in the link above to reflect the final and working version. It also includes notes on version requirements. Feel free to use, reuse, and distribute as needed.