Support » Plugin: Ultimate Member - User Profile & Membership Plugin » “Repeat email” field

  • Resolved Adrian



    Is there a way to create a second field, the user has to enter the email address? This would really help to avoid typos.



Viewing 1 replies (of 1 total)
  • Adrian


    Custom solution:

    add_action('um_submit_form_errors_hook_', 'my_um_check_email', 999, 1);
    function my_um_check_email($args) {
        global $ultimatemember;
        if (isset($args['user_email_2']) && isset($args['user_email']) && $args['user_email_2'] != $args['user_email']) {
            $ultimatemember->form->add_error('user_email_2', 'Please repeat your email address.', 'my-key');

    From documentation:

Viewing 1 replies (of 1 total)
  • The topic ‘“Repeat email” field’ is closed to new replies.