CM Registration (CMREG) - Shortcodes - Login button, form, changing password, and more
Shortcodes are simple codes contained within square brackets such as
Some have parameters, which can be written before closing the bracket, as in
To learn about them, go to the WordPress dashboard and navigate to CM Registration Pro → Shortcodes.
This page shows every supported shortcode, with explanation and examples.
The same information is available below, with images of the front-end.
Add this shortcode to display a login button on pages or posts. Optionally, you can customize the button's text:
Add this shortcode to display a logout button on pages or posts. Optionally, you can customize the button's text:
Displays login form.
In the login form, you can also add a link and label to redirect users to the registration form
[cmreg-login-form registration-url="/registration" registration-link="Click here to register"] - shortcode displays the login form.
Optional attributes will produce a link to the registration page.
You can also pass text or HTML that will be displayed for the logged-in users instead of the login form by putting it between the shortcode tags:
[cmreg-login-form] You are already logged-in[/cmreg-login-form]
Displays registration form.
In the registration form, you can also add a link and label to redirect users to the login form.
[cmreg-login-form registration-url="/registration" registration-link="Click here to register"] - shortcode displays the login form. Optional attributes will produce a link to the registration page.
You can also pass text or HTML that will be displayed for the logged-in users instead of the login form by putting it between the shortcode tags: [cmreg-login-form]You are already logged-in[/cmreg-login-form]
Displays the registration button and the registration form is being opened in the overlay after clicking the button.
You can also set the button's text:
Lost Password (For Logged In Users)
Displays lost password form. Requires the user to be logged in.
Change Password (For Logged In Users)
Displays fields to reset the password. Requires the user to be logged in.
- showheader - whether to show or not the header with the text "Change Password" (0 for no, 1 for yes). The default is 0.
Reset Password (For The Lost Password Page)
Displays one field to reset the password. This shortcode should be used in the Lost Password page (when a logged off user asks to reset the password).
Edit Profile Form
Displays the form that registered users can use to update their profile information.
Displays the button that site visitors can use to login using Facebook.
Create Invitation Code
Displays the form that a user can utilize to invite his friends or just create the invitation codes.
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.
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.
Show invitation codes created by user
Displays the table with all invitation codes created by the current user.
Login and registration buttons
You can add the login action on any link using the following URLs (href attributes):
#cmreg-login-click - will produce both login and registration form in the overlay.
#cmreg-only-login-click - will produce only the login form in the overlay.
#cmreg-only-registration-click - will produce only the registration form in the overlay.
?cmreg_popup_open=1 - will automatically trigger the pop-up box. Requires that the destination link has the
The following example is showing how to add the separate Login button and the Registration button to your Wordpress menu ( wp-admin Dashboard → Appearance → Menus):
You can add also the button which will show the login and registration forms at once:
This will produce the new menu links on the front-end:
Notice: the login buttons will be replaced by the Logout buttons when the user is logged-in.
Clicking on each link will show the login or/and registration forms up floating over the website content: