Skip to content

Instantly share code, notes, and snippets.

@trueqap

trueqap/function.php

Last active Jul 28, 2020
Embed
What would you like to do?
disable_autofocus_firstname
<?php
function disable_autofocus_firstname($fields) {
$fields['billing_first_name']['autofocus'] = false;
$fields['billing_last_name']['autofocus'] = false;
return $fields;
}
add_filter('woocommerce_checkout_fields', 'disable_autofocus_firstname');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.