SHARE
TWEET

WooCommerce - Disable autocomplete for logged-in users

lorro Aug 4th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. // WooCommerce - Disable autocomplete for logged-in users
  3. add_filter( 'woocommerce_checkout_fields', 'custom_checkout_fields', 99 );
  4. function custom_checkout_fields( $fields ) {
  5.   $fields['billing']['billing_first_name']['autocomplete'] = ' ';
  6.   // repeat for other fields where required
  7.   return $fields;
  8. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top