geoip_country_name_by_name

The Google Font Fix geoip country name by function.

Description

geoip_country_name_by_name( $gi, (string) $name ); 

Parameters (2)

0. $gi
The gi.
1. $name (string)
The name.

Usage

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

Defined (1)

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

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