WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 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)

#1 @pento
2 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

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.

Note: See TracTickets for help on using tickets.