WooCommerce 2.1 Add Password Confirm Field on My Account Register Form

As per my last tutorial, which showed you how to add a password confirm field to the checkout page, this tutorial falls in the same category but for the register form on the My Account page.

In WooCommerce 2.1 the repeat password fields was removed as it was decided it was easy enough to reset your password with one click should you have gotten in wrong.

If you would still like to add a password confirm field on your register page all you have to do is add the code below to your theme’s functions.php file.

This will add a new field underneath the password field with a label Password Repeat, and then when the customer clicks register it will match the password and password repeat fields against each and and proceed with registration it it matches, or throw an error if it does not match.