test
This commit is contained in:
parent
aa566989a3
commit
4eb727e205
|
@ -36,6 +36,7 @@ function simple_location_post_save($post_id) {
|
|||
$ipLite = new ip2location_lite;
|
||||
$ipLite->setKey($key);
|
||||
$locations = $ipLite->getCity($_SERVER['REMOTE_ADDR']);
|
||||
print_r($locations);
|
||||
}
|
||||
}
|
||||
if ($_POST['city'] == '') {
|
||||
|
|
Loading…
Reference in New Issue