Invitation Code Content Access - Settings - General (Configuring Access, Privacy)
Most of the plugin's settings are located in the General Settings page. Navigate to Admin Dashboard → Invitation Code Content Access → Settings.
Head to the General tab.
These are the options:
- Code stays valid for - Choose between:
- Duration of the session - The code will be used once every session. A session lasts for as many pages as the user visits and only ends after the user is inactive for 30 minutes.
- 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.
This is how it looks like in Front-End: And in Back-End while viewing and editing the code you can see the list of emails, who used that code:
- 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.
When the option Allow to use form buider is enabled a new item appears in the menu:
You can learn more about Profile Fields in this guide: Invitation Code Content Access - 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:
After accessing the restricted page:
- 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.
- 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: Invitation Code Content Access - How To - Display Content Access Form (Shortcode)
- 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:
- Numbers and Letters (0-9 and A-Z)
- Numbers only (0-9)
- Letters only (A-Z)
- Longer codes WILL NOT work
- New codes will be generated with four characters only
- The code box will ask for only four digits
Four Digits code modeIf Four Digits Code mode is enabled, this will happen:
Learn more: Invitation Code Content Access - 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.
- 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).
- 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.
- 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.
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.
Terms and Privacy
- 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.
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.
How it looks like on the Front-end:
- 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.
- Access Code Form View - Select the form view for entering the access code. Note: this feature was introduced in version 1.6.0.
When you finished configuring settings, don't forget to click the button Save Changes at the bottom of the page.
Google reCaptcha v2
Since the version 1.6.2, 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:
- 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
Get more information about the Invitation Code Content Access plugin for WordPress
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