• Hey,

    I’m using your awesome plugin to create registration form for new customers. I’m trying to add e-mail veryfication field to avoid mistakes. However my function doesn’t work. Can you please check it and give me some help with it?

    
    add_action('um_submit_form_errors_hook_','um_custom_validate_user_email', 999, 1);
    function um_custom_validate_user_email( $args ) {
    	global $ultimatemember;
    	$user_email = $_POST['user_email'];
    	$user_email_confirmation = $_POST['user_email_confirmation'];
    	
    	if ($user_email != $user_email_confirmation) {
    		$ultimatemember->form->add_error( 'user_email_confirmation', 'Your username must not contain the word admin.' );
    	}
    }
    
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘E-mail confirmation field’ is closed to new replies.