Skip to content

Commit 86c6d66

Browse files
authored
Merge pull request #41 from nateinaction/rebrand-geotarget
GeoIP to GeoTarget
2 parents 882c3bb + 1277d57 commit 86c6d66

File tree

2 files changed

+23
-19
lines changed

2 files changed

+23
-19
lines changed

readme.txt

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
=== WP Engine GeoIP ===
1+
=== WP Engine GeoTarget ===
22
Contributors: wpengine, markkelnar, stevenkword, stephenlin, ryanshoover, taylor4484
33
Tags: wpe, wpengine, geoip, localization, geolocation
44
Requires at least: 3.0.1
55
Tested up to: 4.9
6-
Stable tag: 1.2.3
6+
Stable tag: 1.2.4
77

88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -12,7 +12,7 @@ Create a personalized user experience based on location.
1212

1313
== Description ==
1414

15-
WP Engine GeoIP integrates with the variables on your WP Engine site to display content catered to the visitor’s location. With the ability to access variables from as broad as country to as specific as latitude and longitude, your website can now display geographically relevant content.
15+
WP Engine GeoTarget integrates with the variables on your WP Engine site to display content catered to the visitor’s location. With the ability to access variables from as broad as country to as specific as latitude and longitude, your website can now display geographically relevant content.
1616

1717

1818
= Geo-Marketing =
@@ -42,7 +42,7 @@ This plugin will only function on your [WP Engine](http://wpengine.com/plans/?ut
4242
1. Upload `wpengine-geoip` to the `/wp-content/plugins/` directory
4343
2. Activate the plugin through the 'Plugins' menu in WordPress
4444

45-
Please view the 'Other Notes' tab to see all of the available GeoIP shortcodes
45+
Please view the 'Other Notes' tab to see all of the available GeoTarget shortcodes
4646

4747

4848
== Location Variable Shortcodes ==
@@ -62,7 +62,7 @@ You can use any of the following location variable shortcodes to return the vari
6262

6363
5) Postal Code: `[geoip-postalcode]`
6464

65-
* This variable is only available in the US due to limitations with the location data GeoIP uses
65+
* This variable is only available in the US due to limitations with the location data GeoTarget uses
6666

6767
6) Latitude: `[geoip-latitude]`
6868

@@ -180,7 +180,7 @@ if ( false !== $geo->distance_to( $latitude, $longitude ) ) {
180180
}`
181181

182182
== Testing Parameters ==
183-
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:
183+
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 GeoTarget shortcodes or API calls:
184184

185185
Spoof visitor from the state of Texas:
186186

@@ -209,9 +209,9 @@ No, this will only work within the WP Engine environment. This will not work for
209209

210210
2) Are there any other restrictions to using this plugin?
211211

212-
Yes. Even though the GeoIP variables on the server are available to Business, Premium and Enterprise customers, you will still need to reach out to the [Support Team](https://my.wpengine.com/support#general-issue) to fully enable GeoIP for your site.
212+
Yes. On Startup, Growth, and Scale plans the GeoTarget feature is available as an add-on. For Business and Premium plans or once you have added the GeoTarget add-on you will need to reach out to the [Support Team](https://my.wpengine.com/support) to fully enable GeoTarget for your site.
213213

214-
For Personal and Professional customers who are interested in GeoIP, please contact the [Support Team](https://my.wpengine.com/support#general-issue) as well.
214+
You can read our full GeoTarget activation guide [here](https://wpengine.com/support/geoip-personalizing-content-based-geography/).
215215

216216
3) What variables do I have access to?
217217

@@ -223,15 +223,19 @@ That’s easy! [Signup here](http://wpengine.com/plans/?utm_source=wpengine-geoi
223223

224224
5) I installed the plugin and used a shortcode or API call and it isn’t working.
225225

226-
Please contact the WP Engine [Support Team](https://my.wpengine.com/support#general-issue).
226+
Please contact the WP Engine [Support Team](https://my.wpengine.com/support).
227227

228228
== Screenshots ==
229229

230-
1. Authoring a new post with GeoIP shortcodes
231-
2. An example post using GeoIP shortcodes
230+
1. Authoring a new post with GeoTarget shortcodes
231+
2. An example post using GeoTarget shortcodes
232232

233233
== Changelog ==
234234

235+
= 1.2.4 =
236+
- Updating branding to GeoTarget
237+
- Readme update
238+
235239
= 1.2.3 =
236240
- Bumps version number for WP 4.9 compatibility
237241
- Updates shortcode usage examples

wpengine-geoip.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Plugin Name: WP Engine GeoIP
3+
* Plugin Name: WP Engine GeoTarget
44
* Version: 1.2.3
55
* Description: Create a personalized user experienced based on location.
66
* Author: WP Engine
@@ -31,7 +31,7 @@ function geoip_append_content( $content ) {
3131
}
3232

3333
/**
34-
* Base class for the GeoIP plugin
34+
* Base class for the GeoTarget plugin, GeoTarget was formerly called GeoIP
3535
*/
3636
class GeoIp {
3737

@@ -178,7 +178,7 @@ public function enqueue_admin_js() {
178178
* Here we extract the data from headers set by nginx -- lets only send them if they are part of the cache key
179179
*
180180
* @since 0.1.0
181-
* @return array All of the GeoIP related environment variables available on the current server instance
181+
* @return array All of the GeoTarget related environment variables available on the current server instance
182182
*/
183183
public function get_actuals() {
184184

@@ -206,7 +206,7 @@ public function get_actuals() {
206206
*
207207
* @since 1.1.0
208208
* @param array $geos Array of values for the user's location.
209-
* @return array Modified version of the GeoIP location array based on url parameters
209+
* @return array Modified version of the GeoTarget location array based on url parameters
210210
*/
211211
public function get_test_parameters( $geos ) {
212212

@@ -620,7 +620,7 @@ public function action_admin_init_check_plugin_dependencies() {
620620

621621
if ( $this->helper_should_notice_show( $notice_key ) ) {
622622
/* translators: Tells users that the plugin won't automatically work if they're not in the right setup */
623-
$notice = __( 'WP Engine GeoIP requires a <a href="%s">WP Engine account</a> with GeoIP enabled for full functionality. Only testing queries will work on this site.', 'wpengine-geoip' );
623+
$notice = __( 'WP Engine GeoTarget requires a <a href="%s">WP Engine account</a> with GeoTarget enabled for full functionality. Only testing queries will work on this site.', 'wpengine-geoip' );
624624
$this->admin_notices['warning'][ $notice_key ] = sprintf( $notice, 'http://wpengine.com/plans/?utm_source=' . self::TEXT_DOMAIN );
625625
}
626626
}
@@ -675,8 +675,8 @@ protected function helper_should_notice_show( $notice ) {
675675
$is_active = $this->geos['active'];
676676
$is_dismissed = get_user_meta( get_current_user_id(), self::TEXT_DOMAIN . '-notice-dismissed-' . $notice, true );
677677

678-
// false = GeoIP is active, or if we've dismissed the notice before.
679-
// true = GeoIP is not active and we haven't dismissed the notice before.
678+
// false = GeoTarget is active, or if we've dismissed the notice before.
679+
// true = GeoTarget is not active and we haven't dismissed the notice before.
680680
return ! ( $is_active || $is_dismissed );
681681
}
682682

@@ -752,5 +752,5 @@ public function distance_to( $lat, $lng, $metric = false ) {
752752
}
753753
}
754754

755-
// Register the GeoIP instance.
755+
// Register the GeoTarget plugin instance.
756756
GeoIp::init();

0 commit comments

Comments
 (0)