WC_Geo_IP::_get_record()privateWC 1.0

Get record.

Method of the class: WC_Geo_IP{}

No Hooks.

Return

WC_Geo_IP_Record. instance

Usage

// private - for code of main (parent) class only
$result = $this->_get_record( $ipnum );
$ipnum(int) (required)
-

WC_Geo_IP::_get_record() code WC 8.7.0

private function _get_record( $ipnum ) {
	$seek_country = $this->_geoip_seek_country( $ipnum );
	if ( $seek_country == $this->databaseSegments ) {
		return null;
	}

	return $this->_common_get_record( $seek_country );
}