PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Urgent - User Registration forcing email to be unique

  1. I need to override the processing of the duplicate email in the User Registration plugin. Here is a snippet from the User Registration code:

    $form = apply_filters('gform_user_registration_validation', $form, $config, $pagenum);
    
            $validation_result["is_valid"] = self::is_form_valid($form);
            $validation_result["form"] = $form;

    It doesnt look like the gform_user_registration_validation hook allows you to force validate the $validation_result. Is there a way to override this? - I need to find a way to do this without hacking the core of the User Registration plugin. I am on the v 1.5 beta so I do have access to the gform_disable_registration hook as well but it does not appear that this is what Im looking for either.

    Please help asap - I need to figure this out for a client deadline. Thank you!

    Posted 11 years ago on Friday October 12, 2012 | Permalink
  2. I tried this thinking it would work but no luck either:

    add_action('gform_user_registration_validation', 'gf_us_validate_user_registration', 10, 3);
    		function gf_us_validate_user_registration($form, $config, $pagenum){
    			//Disable validation of email by User Registration Plugin
    			$validation_result['is_valid'] = true;
    			return $form;
    		}

    Still stuck.

    Posted 11 years ago on Friday October 12, 2012 | Permalink
  3. David Peralty

    Sorry, you are looking to stop the e-mail address from being unique in terms of the User Registration add-on? WordPress itself has required non-duplicate e-mail addresses since around version 2.8 as seen here:

    http://core.trac.wordpress.org/changeset/10990

    Posted 11 years ago on Friday October 12, 2012 | Permalink
  4. Let me rephrase my question - sorry. How do I disable User Registration altogether on a specific form using a hook if a condition is met? I do not want it to add a new user.

    Posted 11 years ago on Friday October 12, 2012 | Permalink
  5. There was a Priority Support ticket for this as well. I am closing this post and have replied to the Priority Support ticket.

    Posted 11 years ago on Friday October 12, 2012 | Permalink

This topic has been resolved and has been closed to new replies.