Initial Commit
This commit is contained in:
commit
e8f7955c1c
5432 files changed
+1397750
No files matched your search
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* Geolocation Functions
|
||||
*
|
||||
* @package WP_Ultimo\Functions
|
||||
* @since 2.0.0
|
||||
*/
|
||||
|
||||
// Exit if accessed directly
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Get the customers' IP address.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @return string
|
||||
*/
|
||||
function wu_get_ip() {
|
||||
|
||||
$geolocation = \WP_Ultimo\Geolocation::geolocate_ip('', true);
|
||||
|
||||
return apply_filters('wu_get_ip', $geolocation['ip']);
|
||||
|
||||
} // end wu_get_ip;
|
||||
Reference in new issue
Block a user