Support

Home Forums WP User Integration WordPress User Integration

WordPress User Integration

Posted: February 25, 2025 at 8:07 pm

Viewing 7 reply threads


Andy Buck

February 25, 2025 at 8:07 pm

Hi,
When a new user checks out with a new email address, the addon does not require the user to login or register and the user checks out he then receives an email to set his password and a new user is created wordpress.

However if an existing user tries to check out with an email that already exists, the system asks him to either login or register with a different email address – are there any settings or customisations that can be done that will let a user checkout with an existing email address without asking him to login or asking him to register ?

Many thanks


Tony

  • Support Staff

February 26, 2025 at 4:20 am

Hi there,

Yes, we have a filter to disable this so you’ll need to add a line of code to the site, this line to be specific:

https://gist.github.com/joshfeck/1131145859a3fab58f4d#file-disable_email_match_everyone-php-L4

That will prevent EE from checking for the email and allow registrations.

You can add that line to a custom functions plugin, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


Andy Buck

February 26, 2025 at 4:48 pm

Hi Tony,

That is great, thank you for your reply

By adding this function, it will still create new wordpress users for users with new email addresses though right ? It won’t disable that part of the functionality

If you can please confirm I understand correctly

Regards,
Alex


Tony

  • Support Staff

February 27, 2025 at 2:29 am

Yes, that’s correct.

That filter just disables the code that checks for a current user account and forces the login.

Actually, if disabling that there another setting you should disable.

Event Espresso -> Registration Form -> User integration settings.

Set ‘Always sync contact information with WP user profile?’ to No and save.

Becuase your disabling the check you ‘could’ sync your user account to different credentials now, so disable that option.


Andy Buck

February 27, 2025 at 5:16 am

Hi Tony,

That’s awesome.. thanks very much for that

Kind Regards,
Alex


Tony

  • Support Staff

February 27, 2025 at 8:15 am

You’re most welcome 🙂


Andy Buck

February 27, 2025 at 11:51 pm

Sorry Tony, one more question

In link that you have provided there are 2 functions – do I apply both of them or just the second one ?

Regards,
Alex


Tony

  • Support Staff

February 28, 2025 at 2:44 am

Its a little hard to see on Gists, but that link is reference Line 4 of second file, you just need this single line:

https://monosnap.com/file/OhBTJoacZ0eLLEDBsczyS6sfF3nqVY

The filter in the file above will disable the user match check only when logged out, the one I linked to disables it for all.

Viewing 7 reply threads

The support post ‘WordPress User Integration’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso