WC_Geo_IP::geoip_record_by_addr
Record by addr.
Method of the class: WC_Geo_IP{}
No Hooks.
Returns
WC_Geo_IP_Record.
Usage
$WC_Geo_IP = new WC_Geo_IP(); $WC_Geo_IP->geoip_record_by_addr( $addr );
- $addr(string) (required)
- .
WC_Geo_IP::geoip_record_by_addr() WC Geo IP::geoip record by addr code WC 10.6.2
public function geoip_record_by_addr( $addr ) {
if ( null == $addr ) {
return 0;
}
$ipnum = ip2long( $addr );
return $this->_get_record( $ipnum );
}