Last active
July 28, 2020 17:30
-
-
Save trueqap/f5b0cc087da0c53030e9a79dd4673961 to your computer and use it in GitHub Desktop.
disable_autofocus_firstname
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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