WC_Geo_IP::geoip_record_by_addr( string $addr )

Record by addr.


Description Description


Parameters Parameters

$addr

(Required)


Top ↑

Return Return

(WC_Geo_IP_Record)


Top ↑

Source Source

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

	public function geoip_record_by_addr( $addr ) {
		if ( null == $addr ) {
			return 0;
		}

		$ipnum = ip2long( $addr );
		return $this->_get_record( $ipnum );
	}


Top ↑

User Contributed Notes User Contributed Notes

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