WordPress Registration Form Plugin (CMREG) - Invitation Codes - Letting Users Create Codes


Letting Users Create Codes

Back to User Guide

With the WordPress Registration Form Plugin, you can let logged-in users create invitation codes. They will see the following form.

Form for creating and sending invitation codes - WordPress Plugin User Registration
Form for creating and sending invitation codes

Showing The Form

This is done by applying the following shortcode to your site.

[cmreg-create-invitation-code]

It displays the form that a user can utilize to invite his friends or just create the invitation codes.

Parameters:

  • expiration - set the invitation code's expiration date in format YYYY-MM-DD HH:MM:SS or give the time period as 30 days. You can  use the following English words: minutes, hours, days, weeks, months or years.
  • userslimit - number of users that can use the invitation code.
  • verifyemail - one of: global, 1, 0. Whether to require a user registered with this code to verify his email address.
  • emailinput - 0 or 1 - whether to show the email address input field to send the invitation code to or not. Note: since the version 3.4.6 it is possible to add multiple emails in the form for creating invitation codes.
  • role - set a Wordpress role that a user registered with this invitation code will be assigned to. If empty then use the role from the plugin settings.
  • showparams - 0 or 1. Show the parameters that the invitation code will have.
  • showlink - 0 or 1. Shows a link that can be followed to claim the code.

Examples

[cmreg-create-invitation-code expiration="2 weeks" role="Editor" userslimit="3" emailinput="1" showparams="1" showlink="1" verifyemail="1"]

Example of creating and sending invitation codes and link - User Registration WordPress
Example of creating and sending invitation codes and link

To see the full list of shortcode in the plugin check WordPress Registration Form Plugin (CMREG) - Shortcodes

More About Shortcodes

Shortcodes are simple codes contained within square brackets such as [example-shortcode] .

Some have parameters, which can be written before closing the bracket, as in  [example-shortcode parameter="value"]

To learn about them, navigate to Admin Dashboard → CM Registration Pro → Shortcodes.  

Navigation to the shortcodes list - WordPress Login Plugin
Navigation to the shortcodes list

More information about the WordPress Registration Form Plugin

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.