View Categories

Invite Codes

User Registration & Membership‘s Invite Codes add-on allows you to restrict the registration on your site to users with invite Codes.

Install User Registration & Membership Pro (If Not Installed) #

To use the Invite Codes Addon, ensure User Registration & Membership Pro is installed and activated. If not, purchase it from wpuserregistration.com and follow our guide on activating it with a license key. This addon is available for Plus and Professional plans.

Activate the Invite Codes Addon #

  1. Navigate to User Registration & Membership > Addons in your WordPress dashboard.
  2. Locate or search for the Invite Codes Addon and toggle to Activate.
Enabling Invite Codes Add-ons on User Registration and Membership Pro

Create Invitation Codes #

After you’ve activated the Invite Codes add-on, you need to first create , go to User Registration & Membership > Settings > Invite Codes.

To generate a invite code, click on Add New and in the details.

Adding a new invite code to User Registration and Membership Pro
  • Add New Code: Enter the name of the code.
  • User Limit: Limit the number of users can use this code. Leave empty for unlimited times.
  • Expiry Date: Set the date in which the code will be expired. Leave empty for no expiry date.
  • Select Form: Select the form to set this invite code to successfully register.
  • Override User Role: Enable/Disable the user overriding for the invite code.
  • User Role: Override the user role from form settings and assign to the user registered with this invite code.

Generate Random Codes #

You can also generate any number of random codes from Generate Random Codes section.

Generating registration invite codes on random using User Registration & Membership plugin
  • Code Numbers: Number of random codes to generate.
  • Code Prefix: Add prefix to randomly generated codes.
  • User Limit: Limit the number of users can use this code. Leave empty for unlimited times.
  • Expiry Date: Set the date in which the code will be expired. Leave empty for no expiry date.
  • Select Form: Select the form to set this invite code to successfully register.
  • User Role: Override the user role from form settings and assign to the user registered with this invite code.

Raw List #

You can view all invite codes raw list from Raw List Section.

View raw list of all invite codes on User Registration and Membership plugin

That’s all. Now you can add Invitation Field to your forms.

Add Invitation Code Field to Registration Forms #

Go from User Registration & Membership > All Forms > Registration Forms and open the desired form in the form builder.

Drag and drop the Invitation Code field from the Fields tab to the form.

Adding invitation code field to membership registration form using URM plugin

With the Invitation Code selected on the Form Builder click on the Field Options for further settings.

Invitation Code Field Options on User Registration and Membership plugin

General Settings #

  • Label: Change the text for the Invitation Code field label.
  • Description: Enter text description for the Invitation Code field.
  • Placeholder: Enter a placeholder for the Invitation Code field.
  • Hide: Toggle to show or hide the Invitation Code field label.
  • Enable Tooltip: Toggle to add a tooltip message for the Invitation Code field.

Advanced Settings #

  • Custom Class: Add a CSS class to the Invitation Code form field.
  • Allow field to be populated dynamically: Enabled this to allow the Invitation Code form field to be populated dynamically.

That’s all. Save your changes by clicking on the Update form button on the top right.

Form Messages for Invitation Code Form Field #

You can customize the messages on invalid, expired, user limit invite codes from User Registration & Membership -> Settings -> Registration & Login -> Messages ->Invite Codes Message.

Form Messages for Invitation Code Form Field

You can view the invitation codes used by users to register from Dashboard > Users.

Users with associated invite code

Import/Export Invite Codes #

1. Go to User Registration & Membership > Settings > Import/Export
2. Click on ‘Import/Export Invite Codes’.

Import and Export Invite Codes for User Registration and Membership plugin
  • Export Invite Codes: This option allows you to export the invite codes associated with specific forms along with their settings in JSON and CSV .
  • Import Invite Codes: This option allows you to select the available json file with the invite codes and import it to any of the available forms. Only JSON and CSV file format are allowed.

Frontend View #

Frontend view of custom wordpress registration form with invitation code field

If you want to step by step invite codes setup guide then please follow our blog post on how to register users with invitation codes

Powered by BetterDocs

Scroll to top