jetpack_get_country_from_ip
jetpack_get_country_from_ip
Appears in: jetpack.15.2, jetpack.15.3.1, jetpack.15.4, jetpack.15.5, jetpack.15.6, jetpack.15.7, jetpack.15.8
Hook Type: filter
See hook in action
Displaying hooks found in version: jetpack.15.8apply_filters('jetpack_get_country_from_ip') is found 1 times:
- /jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-feedback.php line 1128
* @param string|null $country The country code (e.g., 'US', 'GB', 'DE') or null. * @param string $ip_address The IP address to look up. * @param string $context The context for the geolocation request. */ $country = apply_filters( 'jetpack_get_country_from_ip', null, $ip_address, 'form-response' ); if ( is_string( $country ) ) { return strtoupper( $country ); } $headers = array( 'MM_COUNTRY_CODE',