Looks like you need to add two snippets.
add_filter( 'gform_user_registration_check_email_pre_signup_activation', '__return_false' );
add_action("gform_user_registration_validation", "ignore_already_registered_error", 10, 3);
function ignore_already_registered_error($form, $config, $pagenum){
// Make sure we only run this code on the specified form ID
if($form['id'] != 1) {
return $form;
}
// Get the ID of the email field from the User Registration config
$email_id = $config['meta']['email'];
// Loop through the current form fields
foreach($form['fields'] as &$field) {
// confirm that we are on the current field ID and that it has failed validation because the email already exists
if($field->id == $email_id && $field->validation_message == 'This email address is already registered')
$field->failed_validation = false;
}
return $form;
}
Try adding these to your functions.PHP file
You will also need to update the form ID in the second snippet where it says // Make sure we only run this code on the specified form ID. My apologies for the layout. I am on a mobile device right now and the site won’t allow me to properly indent the code.
Also, your default value email field should be added and you should use an email address that is already registered to Wordpress.
Also, this filter requires a 2.4.2 minimum version of the user registration add on.