woocommerce_geolocation_geoip_apis

woocommerce_geolocation_geoip_apis

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

See hook in core

Displaying hooks found in version: woocommerce.9.2.3

apply_filters('woocommerce_geolocation_geoip_apis') is found 1 times:

  • /includes/class-wc-geolocation.php line 273
    	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 );