WordPress at Your Fingertips
function is not described

WC_Geo_IP::geoip_record_by_addr() public WC 1.0

Record by addr.

{} It's a method of the class: WC_Geo_IP{}

No Hooks.

Return

WC_Geo_IP_Record.

Usage

$WC_Geo_IP = new WC_Geo_IP();
$WC_Geo_IP->geoip_record_by_addr( $addr );
$addr(string) (required)
-

Code of WC_Geo_IP::geoip_record_by_addr() WC 5.6.0

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

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