How can I allow a user to register on the site and ignore the error WP throws back if email is already registered - "This email is already registered, please choose another one."
I tried writing my own plugin but it isn't working:
if($errors['field'.$field->id] == 'This email is already registered, please choose another one.')
unset($errors['field'.$field->id]);
Any help on this would be greatly appreciated.
PS.
i) I know its not ideal to allow same email for registration but can't see another solution to allow same family members to register under different usernames but same family email.
ii) The answer on a previous question did not work on single site, using the code
add_filter('pre_user_email', 'skip_email_exist');
this is why I had to ask this question for single site solution.