Skip to content

Instantly share code, notes, and snippets.

@mahdiyazdani
mahdiyazdani / add-confirm-password-field-into-woocommerce-registration-form.php
Created October 8, 2016 19:26
Add confirm password field into WooCommerce registration form
<?php
/**
* Add the code below to your theme's functions.php file
* to add a confirm password field on the register form under My Accounts.
*/
function woocommerce_registration_errors_validation($reg_errors, $sanitized_user_login, $user_email) {
global $woocommerce;
extract( $_POST );
if ( strcmp( $password, $password2 ) !== 0 ) {