Get user IP Address using an external service. This can be used as a fallback for users on localhost where get_ip_address() will be a local IP and non-geolocatable.
wc_clean( $response['body']
Sortie :
@return string
// Modifier la valeur avec le filtre 'woocommerce_geolocation_ip_lookup_api_response'
add_filter('woocommerce_geolocation_ip_lookup_api_response', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(wc_clean( $response['body']) {
// Modifier la valeur
return wc_clean( $response['body'];
}
Chargement des actualités...