WordPress Registration Form Plugin (CMREG) - Invitation Codes - Enabling Additional User Roles with Invitation Codes


Enabling Additional User Roles with Invitation Codes

Back to User Guide

Since the version 3.8.0, the WordPress Registration Form Plugin allows users to enable additional user roles by using invitation codes. It can be done via relevant form which you can display on the front-end using shortcode.

Shortcode

To display the form, use the shortcode [cmreg-additional-code] - just place it on the needed page. The form is visible for logged-in user only. You can use the shortcode on it's own, or you can use it to wrap a message for guest users, to inform them that they need to login.

Example:

[cmreg-additional-code] You must be logged-in to access this form[/cmreg-additional-code]

Using shortcode - WordPress Plugin User Registration
Using shortcode

Result on the front-end for logged-in users:

Front-end form for logged-in users - User Registration WordPress
Front-end form for logged-in users

Result on the front-end for guest users:

Front-end form for guest users - WordPress Login Plugin
Front-end form for guest users

Setting Up Additional User Role Using Code

Let's say, we have a user who registered using an invitation code. The invitation code gave him an initial user role Subscriber:

User info - WordPress Custom Login Form
User info

And here's what we see in his user profile - the main role is Subscriber, additional roles are not set, and we see an invitation code that the user used.

User profile - WordPress Custom Login
User profile

And we want to give the user more capabilities by setting an additional user role Author. We create an invitation code that changes the user role:

Creating invitation code for setting up a specific user role - WordPress Social Sign In Plugin
Creating invitation code for setting up a specific user role

The user needs to enter the code to the provided form. After that he will see a success message:

Using invitation code - Social Login WordPress
Using invitation code

In the list of users we can see that the user now has 2 roles, and in the column Invitation Code we see titles of all used by the user codes, and we also see the last used code:

Updated user info - WordPress Plugin User Registration
Updated user info

The same in the user profile - we can see the main user role, additional user role, and info about used invitation codes:

Updated info in the user profile - User Registration WordPress
Updated info in the user profile

Labels

It is also possible to configure the labels for the front-end form. To configure it, navigate to Admin Dashboard → CM Registration Pro → Settings → Labels tab:

Navigation to the Labels settings - WordPress Login Plugin
Navigation to the Labels settings

Needed labels can be found under the section Additional Code Shortcode:

Labels - WordPress Custom Login Form
Labels

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.