WC_Geo_IP::geoip_country_id_by_addr_v6( string $addr )

Country ID by addr IPv6.


Description Description


Parameters Parameters

$addr

(Required)


Top ↑

Return Return

(int|bool)


Top ↑

Source Source

File: includes/class-wc-geo-ip.php

	public function geoip_country_id_by_addr_v6( $addr ) {
		if ( ! defined( 'AF_INET6' ) ) {
			$this->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;
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.