Home / eCommerce / Hotfix: Confirm password required on cherckout
Duplicate Snippet

Embed Snippet on Your Site

Hotfix: Confirm password required on cherckout

This is a temporary hotfix for a bug in EDD 3.7.0

Code Preview
php
<?php
add_action( 'edd_pre_process_purchase', function () {
	// Block checkout submits the confirmation as `edd_user_pass2`,
	// but checkout validation reads `edd_user_pass_confirm`.
	if ( empty( $_POST['edd_user_pass_confirm'] ) && ! empty( $_POST['edd_user_pass2'] ) ) {
		$_POST['edd_user_pass_confirm'] = $_POST['edd_user_pass2'];
	}
} );

Comments

Add a Comment