Skip to content

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.

  1. 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.

  2. 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.

  3. 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.

  4. 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