confirm email in registration form
-
I am inserting following code in “code snippets” and putting confirm_email in Customer Action field in ultimate member registration form. The code does not work for me. Can someone please help debug this?
function um_custom_validate_useremail( $args ) {
global $ultimatemember;
if ( isset($args[‘user_email’]) !== ($args[‘confirm_email’])) {
UM()->form()->add_error ( ‘user_email’, ‘Please verify both emails match’ );
}
}
add_action( ‘um_custom_field_validation_confirm_email’, ‘um_custom_validate_useremail’, 10, 3 );
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘confirm email in registration form’ is closed to new replies.