1. BUDDYPRESS SETTINGS
- Make sure that Membership is enabled to make sure anyone can register on the website.
- Navigate to the WordPress Admin Dashboard → Settings → General.

- Now you’re on the General Settings page.
- On the General Settings page, go to the Membership option and checkmark the checkbox.

- Click on the Save Changes button.
- Navigate to the WordPress Admin Dashboard → Settings → BuddyPress.
- Navigate to Components and set your desired settings.

- Navigate to Options and set your desired settings.

- Navigate to Pages and set your desired settings.

- Generate a Invitation Code.

2. BUDDYPRESS- INVITATION CODE
- When the Enable Invitation Code option is enabled, users can now be invited to register for the website by allowing them to register via an invitation code.
- This will allow the possibility to create an invitation-only registration scenario if you want to add exclusivity to the registration process.

- Click on the Save Changes button to apply your settings.
- Once this option is enabled and saved, an option titled Invitation Code would appear in the Approve New Users section on the Dashboard.
- Now navigate to Admin Dashboard → New Users Approve → Invitation Code.

- You’ll be on the Invitation Code Settings page
- Go to the Add Codes tab.
2.1 ADD CODES
- The invitation codes can be generated manually or automatically; each option has its configuration settings to achieve desired results.
2.1.1 MANUAL GENERATE
- In the Add Codes textbox, you can enter your invitation code (one line for each Invitation code).
- Set the Usage Limit.
- Set the Expiry Date.

- Click on the Save Changes button.
- Once the operation is successful you’ll receive a notification labeled as Post Successfully Added.
2.1.2 AUTO GENERATE
- Set the Code Prefix.
- Set the Code Suffix.
- Set the Usage Limit.
- Set the Expiry Date.

- Click on the Save Changes button.
- Once the operation is successful you’ll receive a notification labeled as (Number of Code Quantity set) Invitation Code Successfully added. According to the above image, the notification would be 5 Invitation Code Successfully added.
- Go to Admin Dashboard → New Users Approve → All Codes.

- All the codes which were Manually generated and Auto-generated will be present here.

- Using these codes, the user will be registered and moved to the approved section.
FRONT-END IMPACT
- Go to the membership page and enter the required credentials.
- Once done, click on the Sign Up button.
- Whenever a user tries to register with his email address having the domain mentioned in the whitelist, his request will be accepted.
- Enter the invitation code which was generated above.

- When the user sign up, user will be registered for using respective invitation code.
