WC_Geo_IP::geoip_country_id_by_addr()
Country ID by addr.
Method of the class: WC_Geo_IP{}
No Hooks.
Return
Int
.
Usage
$WC_Geo_IP = new WC_Geo_IP(); $WC_Geo_IP->geoip_country_id_by_addr( $addr );
- $addr(string) (required)
- -
WC_Geo_IP::geoip_country_id_by_addr() WC Geo IP::geoip country id by addr code WC 9.7.1
public function geoip_country_id_by_addr( $addr ) { $ipnum = ip2long( $addr ); return $this->_geoip_seek_country( $ipnum ) - self::GEOIP_COUNTRY_BEGIN; }