Created
March 11, 2021 16:02
-
-
Save scottopolis/22c4985013feab57974d1d251fa0eccf to your computer and use it in GitHub Desktop.
Email First in WooCommerce Checkout
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
<?php | |
// make email the first field on the WooCommerce checkout page | |
add_filter( 'woocommerce_checkout_fields', 'sb_edit_checkout_fields' ); | |
function sb_edit_checkout_fields( $fields ) { | |
// make email first | |
$fields['billing']['billing_email']['priority'] = 4; | |
return $fields; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment