How do I prevent duplicate registrations for the same class in WordPress?
Coursehall accepts no second registration from the same email address for the same session while the first is received, confirmed or on the waitlist, and it tells the person by email that they are already registered. It comes with the free version and is on by default; it compares only the email address, not the name.
What you need for it.
Coursehall, free
The free version runs on WordPress 6.5 or later and PHP 8.3 or later.
A session
The check runs per session. Coursehall does not check a request for a course without a session.
The switch
It sits under Coursehall, Settings, Registration in the section Seats and deadline.
The block works in four steps.
The switch "Prevent duplicate registrations" is on by default.
Compare the address
On submit, Coursehall looks for a registration with the same email address in the chosen session, however it is capitalized, in the built-in form and in Gravity Forms.
The same answer in the form
The form says thank you as it does for a new registration. That way it tells nobody whether an address is already registered.
Email to the address
The person receives the email "Already registered" saying that nothing has changed. A copy to you never goes out with it.
Simultaneous registrations
If two forms with the same address arrive at the same moment, the second waits for the lock of the session and sees the first registration.
What the block cannot do.
The same person with another address
If someone registers with a second email address, Coursehall sees a new person.
Several people with one address
Whoever submits the form three times with the same address for three people is registered once. With Pro the person books several seats in one registration instead.
After a cancellation or unsubscription
Once the first registration is canceled or unsubscribed through the unsubscribe link, Coursehall accepts the same address again.
Registrations added by hand
If you add a registration by hand in the admin, Coursehall does not check the address.
Read more
Pricing
Coursehall Pro is a one-time purchase for 1 site, 3 sites or unlimited sites, with 12 months of updates.
Support
Requirements, payment and how to add courses to a page.
Why does a cached WordPress course page show seats that are already taken?
A page cache shows the seat count from when it stored the page.
How do I let people pick a course date with a seat limit in Gravity Forms?
One PHP function fills a Drop Down with your course dates, stores the ID and rejects a full date on submit.