How it Works
The Invite Only Add On allows you to restrict membership signups for specific membership levels and require an invite code.
After completing their membership checkout, your member will receive a unique invite code that they can share with others. You can specify the number of uses on the invite code, make it unlimited, or give the member multiple single-use codes.
A list of used/unused invite code(s) is displayed on the Membership Account page, allowing a member to see who has used their code to register and manage the unused codes tied to their account.
The admin can increase the number of invites available for a user on the “Edit User” page.
- PMPro Plus members can install the add on from the Memberships > Add Ons admin page.
- Or, download the plugin and upload the ‘pmpro-invite-only’ directory to the ‘/wp-content/plugins/’ directory of your site.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
Set the following globals and constants in your theme’s functions.php file or a helper PMPro Customizations plugin (our recommended method).
global $pmproio_invite_required_levels; $pmproio_invite_required_levels = array(1);
A comma-separated list of Membership Level IDs that require an invite code.
global $pmproio_invite_given_levels; $pmproio_invite_given_levels = array(1);
(Optional) Specify if only specific levels should be given invite codes to share. Defaults to the value set for $pmproio_invite_required_levels.
(Optional) Set the number of invite codes to be created at checkout (and maximum a user can get without admin intervention). Default: 1
(Optional) Set the number of times each code can be used. Default: 1