Advertisement
lorro

WooCommerce - Disable autocomplete for logged-in users

Aug 4th, 2019
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement