Disable autocomplete billing phone field on checkout in WooCommerce

Disable autocomplete billing phone field on checkout in WooCommerce on child sites.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'woocommerce_checkout_fields', 'wc_disable_autocomplete_checkout_fields' );
   
function wc_disable_autocomplete_checkout_fields( $fields ) {
    $fields['billing']['billing_phone']['autocomplete'] = false;
    return $fields;
}

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.