Blog

How to Restrict User Access by Date in WordPress

Restrict User Access by Date in WordPress Form with RegistrationMagic

If you restrict user access by date in WordPress then you can allow users of a certain age on your site. Often you might have content or data on your site that is not fit for users of all age. Then you can take users on WordPress forms from a select age group.

You must have seen movies classifying themselves based on the age of the viewers. Some movies are accessible exclusively to individuals above the age of 18. Similarly, RegistrationMagic offers a feature which filters users according to different parameters. These parameters include age, user role or passphrase.

This WordPress registration plugin allows you to restrict user access by date in WordPress forms. On the other hand, it also enables passphrase and WordPress user roles based access control.

However, some forms might not be suitable for display to minors. Or it can just be that your membership site takes users of a definite age group. With this top-notch feature, you can now take control of the user age as they register on your site.

To sum up, users need to input their date of birth before filling out the form. This filters their age and decides whether to grant them access to a specific form. The “Access Control” section of this form builder plugin, gives full control to the admin on the age group of his/her users. So let’s start this tutorial on how to restrict user access by date in WordPress.

Read More.
How to restrict WordPress registrations by age and other parameters

Go to Access Control On your WordPress Forms

First, install the RegistrationMagic plugin on your site dashboard. After activating it, you will find the plugin menu on your menu panel. From there, click on the “All Forms” link.

This page will show you all the forms that you create with this plugin. Here, we go ahead using the General Purpose Form. Hover your cursor on the form cover and you will find two links at the two bottom corners. The Fields link allows you to add custom fields and widgets on WordPress forms.

Tips: With RegistrationMagic you have a huge spread of custom fields to add to your WordPress forms. You can add extra space, email field, country, numbers, timezone etc. on the form. For taking lengthy user data, more than a few words you can add a text field in WordPress form.

But to do our job today we will click on the “Dashboard” link.

You are finally on the “Dashboard” page of the General Purpose Form. This section will allow you to analyze form analytics, submissions and configure most of the form elements. You can also build and publish a page using the shortcodes of this space. In short, you can use this section for your complete WordPress form design, payment security etc.

Next, scroll down to the “Configure” heading to add extra specs to your form. This is the section from where we will restrict user access by date in WordPress forms. So, click on the “Access Control” icon to allows various permits in your form.

restrict user access access control settings

After that, we are now going to take care of the “Access Control” of this form.

Set up the “Access Control” of your Form

The first field on this page is used to restrict user access by date in WordPress forms. Upon checking the box, users will have to input a date before they can access the form. This setting is quite useful for WordPress new user registration. Some forms and site content, which are not for a certain age, can be restricted using this field.

restrict user access configure control

The “Question for asking date” is a mandatory field. Whatever question you insert in this section will display itself in the frontend. Then, users will answer this question by entering the date below. To give an example, shared below is an image as to how this date based access control will look on your form.

restrict user access frontend

In this example, the “question for asking date” is set with the text, “Enter your Date of Birth” text. To sum up, this question is asked to the user for entering their birth date. This, in turn, will make sure that users of a certain age group register to your site.

The next field “Limit Type” allows you to select the “Age Limit” or “Absolute Dates” radio button.

restrict user access template

These are Two Limit Types:

  • Age Limit – This limit switches on the lower and upper age limit fields. These fields accept only numbers. Users falling in between the age group defined by the upper and lower limits can only access the form.
  • Absolute Dates – This window switches on the upper and lower date limit fields. Users falling in between the two predefined dates can only access the form.

Other fields enable passphrase based form access control.

Tips: From the Access Control section RegistrationMagic, you can also enable WordPress user roles based form access. So that you can make sure that only your specified user roles get access to your forms

You can also enter an “Access Denied” note which the user will see if access is not granted. Moreover, you can be polite to your users with a note saying “Sorry, you don’t have the authorization to access this content”.

This is how you can easily restrict user access by date in WordPress forms.

Plus Factors of Restricting Users by Date

If you build forms for different age groups on your site for a course, camp, event etc then this feature is of utmost use to you. Since the age groups will then access their own forms and thus register to the courses meant for their own age. In that case, you can keep separate classes for kids and adults. Again for a kids camp which takes users till the age of 10, this feature will make sure, only kids till that age register.

Apart from that, adult membership sites or sites that offer mature content can benefit from the access control feature of this plugin. So, apart from being a WordPress form builder plugin, RegistrationMagic makes your site capable of handling users in a professional way. Thus, due to its ease of use, users consider it as the best WordPress registration plugin.

To know more about RegistrationMagic, please visit our  Facebook Page.

Leave a Comment

Your email address will not be published. Required fields are marked *

shares