Forked from stephen-lin/gist:9763aeccb94cc5b8246e
Created
February 11, 2015 22:34
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 | |
/* | |
* Plugin Name: WP Engine GeoIP Debugger | |
* Version: 0.5 | |
* Description: Debug tool for WP Engine GeoIP | |
* Author: WP Engine | |
* Author URI: http://wpengine.com | |
* | |
* This will help confirm if GeoIP is returning the correct information. Check the error log after loading the front page of the site. | |
*/ | |
function geoip_append_debug( $content ) { | |
$geoipdebugging = WPEngine\GeoIp::instance(); | |
error_log(print_r($geoipdebugging, true)); | |
return $content; | |
} | |
add_filter( 'the_content', 'geoip_append_debug' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment