Last active
October 24, 2017 14:52
-
-
Save madeincosmos/ff9a243a4b0da4f997e82342686e5879 to your computer and use it in GitHub Desktop.
Disable autofocus on the checkout page
This file contains hidden or 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
add_filter( 'woocommerce_form_field_args', 'custom_form_field_args', 30, 3 ); | |
function custom_form_field_args( $args, $key, $value ) { | |
$args['autofocus'] = ''; | |
return $args; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment