Skip to content

Instantly share code, notes, and snippets.

@Fitoussi
Last active June 25, 2020 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fitoussi/2b868b48d9fbbf737e9309d7ab4cff1f to your computer and use it in GitHub Desktop.
Save Fitoussi/2b868b48d9fbbf737e9309d7ab4cff1f to your computer and use it in GitHub Desktop.
Gravity Geolocation - Prevent address autofill
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