Add an Email Confirmation Field

Sometimes you may find that you want to add a second email field for requiring that the buyer confirms their email address by entering it twice. This is really quite simple to do, just paste the following snippet into your functions.php or any custom plugin: