woocommerce_geolocation_geoip_apis

woocommerce_geolocation_geoip_apis

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_geolocation_geoip_apis') is found 1 times:

  • /includes/class-wc-geolocation.php line 286
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    private static function geolocate_via_api( $ip_address ) {
        $country_code = get_transient( 'geoip_' . $ip_address );
     
        if ( false === $country_code ) {
            $geoip_services = apply_filters( 'woocommerce_geolocation_geoip_apis', self::$geoip_apis );
     
            if ( empty( $geoip_services ) ) {
                return '';
            }
     
            $geoip_services_keys = array_keys( $geoip_services );