WordPress Invitation Code - Settings - General (Configuring Access, Privacy)


General Settings

Back to User Guide

To find the WordPress Invitation Code plugin settings, navigate to Admin Dashboard → Invitation Code Content Access → Settings → General tab.

Navigation to the plugin settings - Invitation Code Registration for WordPress
Navigation to the plugin settings

General

These are the options:

General plugin settings - WordPress Content Restriction
General plugin settings
  • Code stays valid for - Choose between:
    • Duration of session - The code will be used once every session, until the session cookies are cleared. Have a note that session cookies can behave differently on different devices and browsers/applications. So the session cookies are not everywhere cleared when the browser is closed.
    • Single view - The user will have to input the code every time the page refreshes.
  • Always allow admin to access - Content will never be locked for users with the admin role.
  • Allow blocking homepage - This option allows you to block homepage of your site. This feature is available since version 1.3.8. Learn more about restricting URLs and homepage.
  • Email required while code entered - enable it to make users enter their emails while entering the access code. This feature is available since version 1.3.8.

    Example

    This is how it looks like in Front-End:

    Requiring to enter an email with the invitation code - Private Content WordPress Plugin
    Requiring to enter an email with the invitation code

    And in Back-End while viewing and editing the code you can see the list of emails, who used that code:

    The list of provided emails - Restrict Content Plugin
    The list of provided emails
  • Allow to use form builder - Enable this option to use form builder for expanding invitation code access form. Note: this option was introduced in version 1.4.0.

    Profile Fields

    When the option Allow to use form buider is enabled a new item appears in the menu:

    Profile Fields menu item - WordPress Register with Invitation Code
    Profile Fields menu item

    You can learn more about Profile Fields in this guide: WordPress Invitation Code - Profile Fields

  • Access denied for logged in user - Enable this option to extend the restrictions to all users except the admin. Disable it to make the code work only for guest users.
  • Access code locked by logged in user - Enable this option to tie codes to the logged-in user. This way, after a logged-in user uses the code, that code cannot be used by any other user.
  • Remember used code for user - When enabled the code will be remembered, meaning users only need to enter the code once.
  • Require user to be logged in to use the code - In order to use the code, the user must be logged-in.
  • Don't use redirect for restrict access to the pages - If enabled, plugin will use the_content filter to restrict access to the page. In means, when the user visits restricted page he won't be redirected to the page with a form for entering the invitation code. Instead of it, the form for entering the code will appear on the restricted page. You can use it if you have problems with the "Redirect" mode. The URL for redirecting is set in the Access denied page URL option. Note: this option was introduced in version 1.4.0.
  • Avoid full-page caching - If enabled, the plugin will add GET parameter to URLs of restricted by codes pages to avoid full-page caching. The GET parameter contains a ranodom string, this way the URL is always unique, so it can help to avoid possible problems with cache and full-page cache plugins. We recommend to enable this option in case, if you use any plugin for caching. Note: this option was introduced in version 1.4.4.

    How It Looks Like On the Front-End:

    Before entering the invitation code:

    'Avoid full-page caching' in action - Portal WordPress Plugin Private Content Per User
    'Avoid full-page caching' in action

    After accessing the restricted page:

    'Avoid full-page caching' in action - Members Plugin Restrict Content
    'Avoid full-page caching' in action

    Enable Multi-Factor Authentication - When enabled, the access code box will require SMS authentication. The user will receive an SMS with a code and the code will only work after the user inputs the SMS code. (Requires the CM Secure Login installed with SMS as Two-Factor authentication method).

    Enable Google Tag Manager (GTM) data layer - Can be used to track customer usage of the codes by using the dataLayer.push method. Requires your site to have Google Tag Manager activated.

    Technical information:

  • Access denied for specific user roles - Only logged-in users with selected roles and guests will be required to enter the code. Setting Always allow admin to access takes precedence for roles with manage_options capability during access control.
  • Access denied page URL - The user will be redirected to this page if they try to access locked content with an expired code. Learn how to set this page up: WordPress Invitation Code - How To - Display Content Access Form (Shortcode)

Code Specifications

Invitation codes specifications - Invitation Code Registration for WordPress
Invitation codes specifications
  • Enable four digits invitation code - Codes will have four digits only.
  • Show prefix before four digits codes - If enabled there will be an additional prefix field for the four digits codes generated with prefix.
  • Four digits invitation code pattern - Only works if "Enable four digits invitation code" is enabled. You can choose which characters will be included:
    1. Numbers and Letters (0-9 and A-Z)
    2. Numbers only (0-9)
    3. Letters only (A-Z)

Four Digits code mode

If Four Digits Code mode is enabled, this will happen:

  • Longer codes WILL NOT work
  • New codes will be generated with four characters only
  • The code box will ask for only four digits
Example of the four digits invitation code - WordPress Content Restriction
Example of the four digits invitation code

Learn more: WordPress Invitation Code - Four Digit Codes

  • Exclude special chars from code string - Enable this option if you want to exclude the following special characters from automatically generated codes: 1, L, l, 0, O. Note: this option was introduced in version 1.4.4.

    When you create a single code, these characters won't be added in the code, if it's generated automatically. But you can add them manually, if needed.  If you create a sequence of codes, the option Exclude special chars from code string will work only in case if you enable the option Randomize codes? while confuguring the sequence. 

    Randomizing codes while creating them in bulk - Private Content WordPress Plugin
    Randomizing codes while creating them in bulk
  • Require specific invitation code - If enabled users will be shown a defined hint/question (randomly chosen from all codes for a specific post) along with the access code. Only a correct answer to the specific question will give the user access to the post.
  • Hide code input characters - If enabled, access code characters typed by the user will be hidden. If disabled, typed characters will be visible all the times. Users can click the eye icon to toggle options. Note: This feature works only with standard invitation codes (single input).
  • Allow duplicate codes - If enabled, then you will be able to create repeated codes. Note: this option was introduced in version 1.6.4.

If the option is disabled and you're trying to create a code with the same value, you will see a message that the code already exists and you won't be able to create/update the code.

Attempt to create repeated invitation code - Restrict Content Plugin
Attempt to create repeated invitation code

Payment

Payment settings - WordPress Register with Invitation Code
Payment settings
  • Enable Payment - For this feature you need to install WooCommerce plugin.
  • Auto create/update WooCommerce products for invitation codes with price - If enabled, after saving the invitation code with defined price value, a WooCommerce product will be automatically created/updated to handle the purchase process. Otherwise, a manually created product can be associated with a particular code. For this feature you also need to install the WooCommerce plugin. Note: this feature was introduced in version 1.3.7.

This feature affects the Payment section in Add New Invitation code. Learn more about Add New Invitation code and How to charge Users for Access Code.

  • Allow to sell invitation codes via products ordered directly from the shop catalog - If enabled, the customers will be able to order the invitation codes via associated products chosen directly from the WooCommerce shop catalog. Otherwise, the invitation codes can be only ordered throught a dedicated paybox form. For this feature you also need to install WooCommerce plugin. Note: this feature was introduced in version 1.3.10.

Terms and Privacy

Terms and Privacy settings - Portal WordPress Plugin Private Content Per User
Terms and Privacy settings
  • Show disclaimer for first time users - If enabled, users will be prompted to accept your terms before applying a code for the first time.
  • Collect IP Address - Choose if the plugin will register the IP Address of users when they apply codes. The IPs will be visible in the access log of each code. Depending on the geographical region of your user, disclosing this practice in terms of service can be obligatory.
  • Footer count block - Enable this option to display the footer with the counter. 

    Note

    The option was introduced in the version 1.3.12.

    This footer can be displayed only when you create the code, and choose the way how the code will expire - Once activated, expires after some time.

    'Once activated, expires after some time' option - Members Plugin Restrict Content
    'Once activated, expires after some time' option

    How it looks like on the Front-end:

    Footer count - Invitation Code Registration for WordPress
    Footer count
  • Disclaimer text - Add the Terms of Service text users will have to accept in order to utilize the service. You can add rich text and multimedia. When creating codes, you can apply unique ToS messages.

Appearance

Appearance setting - WordPress Content Restriction
Appearance setting
  • Access Code Form View - Select the form view for entering the access code. Note: this feature was introduced in version 1.6.0.

    View 1

    Access Code Form View 1 - Private Content WordPress Plugin
    Access Code Form View 1

    View 2

    Access Code Form View 2 - Restrict Content Plugin
    Access Code Form View 2

When you finished configuring settings, don't forget to click the button Save Changes at the bottom of the page.

'Save Changes' button - WordPress Register with Invitation Code
'Save Changes' button

Google reCaptcha v2

Since the version 1.6.2 of WordPress Invitation Code, the plugin allows to enable reCaptcha in the form for entering invitation codes. It is done to increase the security against bots. 

To enable reCaptcha, you need to configure the following options:

Google reCaptcha settings - Portal WordPress Plugin Private Content Per User
Google reCaptcha settings
  • Enable Google Recaptcha - Turn on this option to secure the form for entering invitation codes with Google reCaptcha. The plugin is compatible with reCaptcha v2 only.
  • API site key - Enter API site key.
  • API secret key - Enter API secret key.

To obtain API keys, visit Google Recaptcha platform. Learn more about how to get API keys in this user guide: General Support - reCAPTCHA - What is It and How to Enable


More information about the WordPress Invitation Code 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.