geoip_country_name_by_addr_v6

The Google Font Fix geoip country name by addr v6 function.

Description

geoip_country_name_by_addr_v6( $gi, $addr ); 

Parameters (2)

0. $gi
The gi.
1. $addr
The addr.

Usage

  1. if ( !function_exists( 'geoip_country_name_by_addr_v6' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-font-fix/geo/geoip.inc.php'; 
  3.  
  4. // The gi. 
  5. $gi = null; 
  6.  
  7. // The addr. 
  8. $addr = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = geoip_country_name_by_addr_v6($gi, $addr); 
  12.  

Defined (1)

The function is defined in the following location(s).

/geo/geoip.inc.php  
  1. function geoip_country_name_by_addr_v6($gi, $addr) 
  2. $country_id = geoip_country_id_by_addr_v6($gi, $addr); 
  3. if ($country_id !== false) { 
  4. return $gi->GEOIP_COUNTRY_NAMES[$country_id]; 
  5. return false;