gatherpress_geocode_on_save_enabled

Last updated July 11, 2026, Version 0.34

Filters whether the async geocode should run on venue save.

Hosts that need to control egress (firewalled corp installs, privacy-sensitive setups, dev environments without Photon access) can return false here to suppress the cron. Structured-address fields then stay at their last persisted values until the filter is re-enabled or update_post_meta is called directly from trusted code.

Auto-generated Example

add_filter(
   'gatherpress_geocode_on_save_enabled',
    function(
        bool $enabled,
        int $post_id
    ) {
        // Your code here.
        return $enabled;
    },
    10,
    2
);

Parameters

  • bool $enabled True to schedule the geocode, false to skip.
  • int $post_id Venue post ID.

Files

apply_filters( 'gatherpress_geocode_on_save_enabled', true, $post_id )

← All Hooks