WC_Geo_IP::geoip_country_id_by_addr_v6
Country ID by addr IPv6.
Method of the class: WC_Geo_IP{}
No Hooks.
Returns
Int|true|false.
Usage
$WC_Geo_IP = new WC_Geo_IP(); $WC_Geo_IP->geoip_country_id_by_addr_v6( $addr );
- $addr(string) (required)
- .
WC_Geo_IP::geoip_country_id_by_addr_v6() WC Geo IP::geoip country id by addr v6 code WC 10.6.2
public function geoip_country_id_by_addr_v6( $addr ) {
if ( ! defined( 'AF_INET6' ) ) {
self::log( 'GEOIP (geoip_country_id_by_addr_v6): PHP was compiled with --disable-ipv6 option' );
return false;
}
$ipnum = inet_pton( $addr );
return $this->_geoip_seek_country_v6( $ipnum ) - self::GEOIP_COUNTRY_BEGIN;
}