Opened 6 years ago
Closed 6 years ago
#45963 closed enhancement (wontfix)
Get Geo Location
Reported by: | bhubbard | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
It would be great if wordpress had a function to get geolocation of a user. Several different tools exist out there, but many are dependent on the server setup. For example with CloudFlare its as simple as getting the following;
$_SERVER['HTTP_CF_IPCOUNTRY']
Having a general method in WordPress that plugins/hosting providers can modify as needed could make getting geolocation simpler.
Change History (1)
Note: See
TracTickets for help on using
tickets.
Thank you for the feature request, @bhubbard.
Maintaining a geolocation database is not something that's viable for WordPress Core, it's far better left to expert services.