Skip to content

Geo location helper function

Choose a tag to compare

@AndreiIgna AndreiIgna released this 23 Oct 10:47
· 15 commits to master since this release

This release adds a new helper function getVisitorCountryCode which returns the visitor's country code. Example:

$visitorCountry = getVisitorCountryCode();
// returns string(2): ES, US, UK, etc