Created
August 8, 2018 16:46
-
-
Save barryhughes/96c4b2fc78055a8d031ecf1a3736e689 to your computer and use it in GitHub Desktop.
Sample of overriding the min/max map view coords (ECP 4.4.30)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# Prohibit caching of geoloc center point/bounds | |
add_filter( 'pre_transient_geoloc_center_point_estimation', '__return_null' ); | |
# Override the min/max coords | |
add_filter( 'tribe_geoloc_pre_get_min_max_coords', function() { | |
return [ | |
'min_lat' => 30, | |
'max_lat' => 40, | |
'min_lng' => 20, | |
'max_lng' => 30, | |
]; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment