WC_Geo_IP::geoip_record_by_addr
Record by addr.
Метод класса: WC_Geo_IP{}
Хуков нет.
Возвращает
WC_Geo_IP_Record.
Использование
$WC_Geo_IP = new WC_Geo_IP(); $WC_Geo_IP->geoip_record_by_addr( $addr );
- $addr(строка) (обязательный)
- .
Код WC_Geo_IP::geoip_record_by_addr() WC Geo IP::geoip record by addr WC 11.2.2
public function geoip_record_by_addr( $addr ) {
if ( null == $addr ) {
return 0;
}
$ipnum = ip2long( $addr );
return $this->_get_record( $ipnum );
}