ok, but, it would be nice, if you provide similar functions like
geoip_detect2_get_info_from_ip
geoip_detect2_get_info_from_current_ip
for developers. I using Mailster plugin for newsletter, which also using internal geoip from GeoIPOrg.dat and GeoIPv6.dat files. As you write, you will implemented on your way. So if you dont support functions for developers, for me it would be three loads (Mailster, GEOIP detect, Cerber ) GEOIP dat (Maxmind db), which I believe it would be heavy use for memory. If you dont provide public functions for developer, it would be nice some apply_filters, which I can use for overide, for example
add_filter( 'cerber_geoip_detect2_get_info_from_ip', 'myweb_geoip_detect2_get_info_from_ip', 10, 1);
function myweb_geoip_detect2_get_info_from_ip( ip ) {
if ( function_exist( 'geoip_detect2_get_info_from_ip' ) )
return geoip_detect2_get_info_from_ip( $ip );
return $ip;
}
-
This reply was modified 7 years, 2 months ago by Hrohh.