title: Woocommerce - Turn Off Autocomplete in Checkout Fields via "autocomplete=new-password"
body: <p>I've found a couple of coding examples of this but nothing has worked. It seems such a simple thing to fix. We have an issue with our checkout page when certain users we're guessing have autocomplete on in their browser when checking out, we get duplicate or different Address 1 and 2 values. Even enabling the google api to help with autocomplete, didn't solve our issue. It corrected it some but, not enough.</p>
  <p>This is one version of the solution I found in the interwebs melded with my own but, does not do anything....</p>
  <pre><code>/* Disable autofill address */
  
  add_filter( 'woocommerce_form_field', 'change_autofill', 1, 1 );
  
  function change_autofill( $field) {
  
  $field = str_replace('autocomplete=&quot;billing_address_1&quot;', 'autocomplete=&quot;new-password&quot;', $field);
  return $field; 
  
  }
  </code></pre>
  <p>I would like the ability to pick and choose which input fields to set the autocomplete attribute to &quot;new-password&quot; as I've read this forces all modern browsers to think it's a password field and does not try to fill them. When using inspector, each input field in the checkout has &quot;autocomplete=off&quot; already. That's why we are after this solution, in this manner...</p>