jetpack_get_country_from_ip

jetpack_get_country_from_ip

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.15.2

apply_filters('jetpack_get_country_from_ip') is found 1 times:

  • /jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-feedback.php line 860
    		 * @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',