|
2 | 2 | Contributors: wpengine, markkelnar, stevenkword, stephenlin, ryanshoover, taylor4484 |
3 | 3 | Tags: wpe, wpengine, geoip, localization, geolocation |
4 | 4 | Requires at least: 3.0.1 |
5 | | -Tested up to: 4.3.1 |
6 | | -Stable tag: 1.2.0 |
7 | | - |
| 5 | +Tested up to: 4.4.2 |
| 6 | +Stable tag: 1.1.3 |
8 | 7 | License: GPLv2 or later |
9 | 8 | License URI: http://www.gnu.org/licenses/gpl-2.0.html |
10 | 9 |
|
@@ -55,7 +54,7 @@ You can use any of the following location variable shortcodes to return the vari |
55 | 54 | 3) Region: `[geoip-region]` |
56 | 55 |
|
57 | 56 | * In the US region will return States |
58 | | -* In Canada region will return Provinces |
| 57 | +* In Canada region will return Providences |
59 | 58 | * Outside the US/CA this will return a Region number. Please note region numbers are not unique between countries |
60 | 59 |
|
61 | 60 | 4) City: `[geoip-city]` |
@@ -99,7 +98,7 @@ Below are all the supported negative geography options, this allows to you HIDE |
99 | 98 | * not_postalcode |
100 | 99 |
|
101 | 100 | = Examples of the Content Shortcode = |
102 | | -This will display “Content just for US visitors” strictly for visitors viewing from the United States. |
| 101 | +This will display “Content just for US visitors” strictly for visitors viewing from the United States. |
103 | 102 | `[geoip-content country="US"] Content just for US visitors [/geoip-content]` |
104 | 103 |
|
105 | 104 |
|
@@ -173,20 +172,6 @@ You want to show an ad written in Spanish to all of South America except for Bra |
173 | 172 | [geoip_content city="Brasilia"]Venta de la Navidad en los adaptadores USB[/geoip_content] |
174 | 173 | ``` |
175 | 174 |
|
176 | | -== Calculate distance between points == |
177 | | - |
178 | | -You have a utility function that will calculate the distance from your provided lat/lng coordinate to the visitor's location in either miles or kilometers. This can be useful for determining approximate distances, as results may be cached at the state or country level, depending on your configuration. |
179 | | - |
180 | | -Example use: |
181 | | -``` |
182 | | -$latitude = 30.268246; |
183 | | -$longitude = -97.745992; |
184 | | -$geo = WPEngine\GeoIp::instance(); |
185 | | -if ( false !== $geo->distance_to( $latitude, $longitude ) ) { |
186 | | - $miles_to_wp_engine = $geo->distance_to( $latitude, $longitude ); |
187 | | -} |
188 | | -``` |
189 | | - |
190 | 175 | == Testing Parameters == |
191 | 176 | You can use the following URL parameters to test how your localized content will appear to visitors from various geographic locations. You can add any of the parameters below to any URL of a page using the GeoIP shortcodes or API calls: |
192 | 177 |
|
@@ -236,8 +221,8 @@ Please contact the WP Engine [Support Team](https://my.wpengine.com/support#gene |
236 | 221 |
|
237 | 222 | == Changelog == |
238 | 223 |
|
239 | | -= 1.2.0 = |
240 | | -- Adds a utility function for calculating distances |
| 224 | += 1.1.3 = |
| 225 | +- Bumps version number for WP 4.4.2 compatibility |
241 | 226 |
|
242 | 227 | = 1.1.2 = |
243 | 228 | - Fixes logic for nested parameter selectors in content shortcode |
|
0 commit comments