---
title: "Invite-only registration"
description: With the Invitation Codes module, visitors can only register with a valid code. Create single or bulk codes, limit how often each one works and add the code field to the registration form.
url: "https://ultimatemembershippro.com/docs/invitation-code/"
updated: "2026-10-18"
category: "Registration & Login"
---

# Invite-only registration

5 minBeginnerUltimate Membership Pro 14.2+

Invitation Codes is an Ultimate Membership Pro module that makes the registration form ask for a code, so only people with a valid one can create an account. Use it for invite-only registration in [closed communities](https://ultimatemembershippro.com/use-cases/associations-and-clubs/): a coaching group for existing clients, a staff portal, a beta.

This guide creates codes for the Coaching Club spring cohort, switches the module on and adds the code field to the form.

Before you start

- Your license is active. This module needs an active license; see [Find and activate your license key](https://ultimatemembershippro.com/docs/where-to-find-your-license-key/).
- Your registration form is set up. See [Set up the registration form](https://ultimatemembershippro.com/docs/set-up-the-registration-form/).

## Create the codes

1. Go to Ultimate Membership Pro*›*Modules and open **Invitation Codes** (in the Security & Login group).
2. Click **Add Single Invitation Code** for one code you choose, or **Add Bulk Invitation Codes** for many random ones.

A single code is handy to share with a whole group. The example code works for the first 25 sign-ups:

[![Add New box with Code COACHSPRING26, the Generate Code button and Repeat 25](https://ultimatemembershippro.com/wp-content/uploads/2026/10/ump-invitation-codes-01-add-single.png)](https://ultimatemembershippro.com/wp-content/uploads/2026/10/ump-invitation-codes-01-add-single.png)
One code for the spring cohort, good for 25 registrations.

 1Code

The code people type. Letters, numbers and underscores; spaces become underscores and other characters are removed. A code that already exists isn't added again.

2Generate Code

Fills in a random 10-character code.

3Repeat

How many registrations the code allows. With 1, it works once.

Default: **1**

Bulk codes suit personal invitations, one code per person:

[![Add New box for bulk codes with Code prefix CC, Length 10, Number of Codes 20 and Repeat 1](https://ultimatemembershippro.com/wp-content/uploads/2026/10/ump-invitation-codes-02-add-bulk.png)](https://ultimatemembershippro.com/wp-content/uploads/2026/10/ump-invitation-codes-02-add-bulk.png)
Twenty one-time codes that start with CC.

 1Code prefix

Text every code starts with, for example CC.

2Length

The total length of each code, prefix included. Keep it longer than the prefix.

Default: **10**

3Number of Codes

How many codes to create, up to 100 at a time.

Default: **2**

4Repeat

How many registrations each code allows.

Default: **1**

Click Save Changes.

## Switch on the module

Click **Manage Invitation Codes**. Switch on **Activate/Hold Invitation Codes** and click Save Changes. Your codes are listed below.

[![Invitation Codes box with Activate/Hold Invitation Codes switched on and the Error Message field, and a table of three codes with Repeat and Used columns](https://ultimatemembershippro.com/wp-content/uploads/2026/10/ump-invitation-codes-03-manage.png)](https://ultimatemembershippro.com/wp-content/uploads/2026/10/ump-invitation-codes-03-manage.png)
The module switched on, and the codes with how often each was used.

 Error Message

What visitors see when the code is empty, unknown or used up.

Default: **Your Invitation Code is wrong.**

Repeat and Used

How many registrations a code allows and how many it has had. When Used reaches Repeat, the code stops working.

Remove

Deletes a code. Tick several codes and click Remove under the table to delete them together.

## Add the code field to the form

1. Go to Ultimate Membership Pro*›*Registration Form, tab **Custom Fields**.
2. In the **Invitation Code** row, switch on **On Registration**. Switch on **On Modal** too if you use the [popup form](https://ultimatemembershippro.com/docs/login-and-registration-popups/).
3. Click Save Changes.

The field is always required. Visitors now see it on the form:

[![Registration form with the required Invitation Code field filled in with COACHSPRING26](https://ultimatemembershippro.com/wp-content/uploads/2026/10/ump-invitation-codes-04-front-field.png)](https://ultimatemembershippro.com/wp-content/uploads/2026/10/ump-invitation-codes-04-front-field.png)
The Invitation Code field on the Register page.

Invite-only for one plan

Edit the Invitation Code field and pick Memberships under **Targeting Memberships**. Only sign-ups for those Memberships then need a code; the others register as usual.

What a code doesn't do

- A code isn't tied to a person, an email address or a Membership. Anyone who knows it can use it until Used reaches Repeat.
- The email-only Register Lite form doesn't ask for a code. Don't use it on an invite-only site. See [Registration with email only (Register Lite)](https://ultimatemembershippro.com/docs/register-light/).
- [Members you add yourself](https://ultimatemembershippro.com/docs/add-a-member-and-assign-a-membership/) in the admin don't need a code.

## Example: Coaching Club spring cohort

 **Spring cohort**Clients of the spring program register with one shared code; 20 personal codes go to VIP guests.

**Activate/Hold Invitation Codes**
: On

**Shared code**
: `COACHSPRING26`, Repeat 25

**Personal codes**
: 20 codes, prefix CC, Length 10, Repeat 1

**Invitation Code field**
: On Registration, all Memberships

## Troubleshooting

  Why does registration fail with “Your Invitation Code is wrong.”?

Ultimate Membership Pro shows this message when the invitation code is mistyped, doesn't exist or is used up (Used equals Repeat). Check the code in Manage Invitation Codes, or create a new one.

  Why does the registration form say “Please fill out all mandatory fields” on an invite-only site?

On an invite-only site, Ultimate Membership Pro shows this message when the Invitation Code field is empty. The code is always required when the field is on the form.

  Why doesn't the invitation code field show on the registration form?

The Invitation Code field shows only after you switch on On Registration in the Invitation Code row and save. If the field targets some Memberships, it only shows for those Memberships.

  Why can people register without an invitation code?

People can register without a code when Activate/Hold Invitation Codes is off, or when a Register Lite form is on your site, because Register Lite doesn't ask for a code.

## What's next

 [**Stop spam registrations**More ways to keep bots out.](https://ultimatemembershippro.com/docs/prevent-spam-registrations/)[**Add custom fields to the registration form**Target fields per Membership.](https://ultimatemembershippro.com/docs/add-custom-fields/)[**Use the built-in special fields**The other ready-made fields.](https://ultimatemembershippro.com/docs/custom-special-fields/)[**Set up the registration form**Approve members yourself.](https://ultimatemembershippro.com/docs/set-up-the-registration-form/)
