How to change billing email place to top in checkout field woocommerce?

Moving the charging email field to the highest point of the WooCommerce checkout gives you numerous advantages: since it’s the primary field clients need to round out, you can catch their email address (after showcasing consent) and send them truck updates, input demands and comparable in the event that they don’t finish the checkout.

Likewise, having the email initially can make you save time on the off chance that the client is now enlisted, and you could save them time while checking this against the rundown of clients, so a brief can be shown to stack all their charging/dispatching subtleties for instance.

In any case, it’s too simple to move the email field to the top. Appreciate!

woocommerce move billing email top

add_filter( 'woocommerce_billing_fields', 'phpsof_move_checkout_email_field' );
 
function phpsof_move_checkout_email_field( $address_fields ) {
    $address_fields['billing_email']['priority'] = 1;
    return $address_fields;
}