WC_Geo_IP::geoip_country_id_by_addr( string $addr )

Country ID by addr.


Description Description


Parameters Parameters

$addr

(Required)


Top ↑

Return Return

(int)


Top ↑

Source Source

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

	public function geoip_country_id_by_addr( $addr ) {
		$ipnum = ip2long( $addr );
		return $this->_geoip_seek_country( $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.