Initial Commit

This commit is contained in:
David Stone
2024-11-30 18:24:12 -07:00
commit e8f7955c1c
5432 changed files with 1397750 additions and 0 deletions

View File

@ -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;