WC_Geo_IP::geoip_record_by_addr()
Record by addr.
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)
- -
WC_Geo_IP::geoip_record_by_addr() WC Geo IP::geoip record by addr code WC 9.7.1
public function geoip_record_by_addr( $addr ) { if ( null == $addr ) { return 0; } $ipnum = ip2long( $addr ); return $this->_get_record( $ipnum ); }