Before and after query hooks




When using the built-in or another custom post type for locations these hooks fire before and after the query to get the location data.


The following example pulls the location data from site 1 in a WordPress Multisite install no matter what site in the Multisite network is being viewed. This would be useful for a Multisite network that didn’t need separate location data for each site and would technically only require a single site license (the plugin would need to be activated on every site where the locator would display but the settings and location data would only need to be set on the indicated site).