Last active
June 25, 2020 23:01
-
-
Save Fitoussi/2b868b48d9fbbf737e9309d7ab4cff1f to your computer and use it in GitHub Desktop.
Gravity Geolocation - Prevent address autofill
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function gfgeo_disable_adderss_field_autofill() { | |
?> | |
<script type="text/javascript"> | |
jQuery( document ).ready( function( $ ) { | |
jQuery( '.gfgeo-address-field' ).attr( 'autocomplete', 'gfgeo-address-field' ); | |
}); | |
</script> | |
<?php | |
} | |
add_action( 'wp_footer', 'gfgeo_disable_adderss_field_autofill' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment