Nearspot Store Finder for OpenStreetMap 1.0.2 has 6 actions and 6 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Nearspot Store Finder for OpenStreetMap fires an action
add_action( 'slosm_cache_flush_failed', function( $arg1, $generation ) {
// Your code runs here.
}, 10, 2 );
// Change a value Nearspot Store Finder for OpenStreetMap is about to use
add_filter( 'slosm_geocoder_cache_ttl', function( $ttl, $service ) {
// Change $ttl here.
return $ttl;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Fires when the cache generation could not be moved. */ do_action( 'slosm_cache_flush_failed', self::GENERATION_OPTION, $generation ); -
/** * Fires when the map payload could not be written to the cache. */ do_action( 'slosm_cache_write_failed', $key, count( $rows ) ); -
/** * Filters how long a geocoding answer is cached, in seconds. */ apply_filters( 'slosm_geocoder_cache_ttl', $ttl, $service ); -
/** * Fires when a lookup could not be written to the cache. */ do_action( 'slosm_geocoder_cache_write_failed', $key, $service ); -
/** * Filters the endpoint a geocoding request goes to. */ apply_filters( 'slosm_geocoder_endpoint', $url, $service ); -
/** * Fires when the geocode cache generation could not be moved. */ do_action( 'slosm_geocoder_flush_failed', self::GENERATION_OPTION, $generation ); -
/** * Fires when the rate limiter could not record a request. */ do_action( 'slosm_geocoder_throttle_write_failed', $option, $now ); -
/** * Filters the User-Agent geocoding requests identify the site with. */ apply_filters( 'slosm_geocoder_user_agent', $agent, $service ); -
/** * Filters how many locations may be preloaded in one request. */ apply_filters( 'slosm_preload_threshold', self::PRELOAD_THRESHOLD ); -
/** * Fires when a lookup failed and the detail was withheld from the response. */ do_action( 'slosm_rest_upstream_failed', $code, $data ); -
/** * Filters whether locations get their own front-end pages. */ apply_filters( 'slosm_store_public', false ); -
/** * This filter is documented in WPML, which is where it comes from. */ apply_filters( 'wpml_current_language', null );
Generated from Nearspot Store Finder for OpenStreetMap's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: