Age Gate Plugin
A plugin to check the age of a visitor before view site or specified content
There are many uses for restricting content based on age, be it movie trailers, beer or other adult themes. This plugin allows you to set a restriction on what content can been seen or restricted based on the age of the user.
Features
- Ask users to verify their age on page load
- SEO Friendly – common bots and crawlers are omitted from age checks
- Ability to add custom user agents for less common bots
- Shortcode for in content restrictions
- Choose to restrict an entire site, or selected content
- Select a different age on individual content
- Allow certain content to not be age gated under “all content” mode
- Three choices for input; dropdowns, input fields or a simple yes/no button
- Customise the order of the inputs based on your region (DD MM YYYY or MM DD YYYY)
- Allow a “remember me” check box if desired
- Ability to omit logged in users from being checked
- Add your own logo
- Update the text displayed on the entry form
- Select background colour/image, foreground colour and text colour
- Use built in styling out of the box, or your own custom style
- Ability to add legal note or information to the bottom of the form
- Redirect failed logins to a URL of your choice e.g. an alcohol awareness website.
- Ability to use a non caching version
- Various hooks to add even more customisation such as additional form fields
- Compatible with multilingual plugins WPML, Polylang (2.3+), WP Multilang
Installation
- Upload the ‘age-gate’ folder to the ‘/wp-content/plugins/’ directory
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Visit ‘Age Gate’ admin section and adjust your configuration.
Important
Be sure to check the ‘Access’ settings tab to grant permissions and omit any post types you don’t wish to display Age Gate options on.
Screenshots
An example of Age Gate
The Restrictions settings page
Age Gate has a variety of customisable message settings
The appearance can be tailored to fit your website
Advanced options include the use of a JavaScript Age Gate
Manage what users can change Age Gate's setting, restrict posts and exclude settings from certain post types.
FAQ
I can’t get past the Age Gate / The Age Gate only worked once The most likely cause for this is caching on your site either via a plugin or your hosting provider. If the Age Gate appears stuck try using the JavaScript mode in the advanced tab and clear any caches.
Can I restrict a particular page? You can. If you use selected content, a checkbox will appear in content pages
Can I add my own logo/branding? Of course, it’s your site
I’m in X country, can I format the date style? Yes! DD MM YYYY and MM DD YYYY are supported along with a choice of how the dates are entered.
I use caching, will that be affected? From version 1.4.0 those using caching can select the “Cache Bypass” option to allow age gating even with caching on. Be sure to empty your cache when making changes to the plugin settings. From 2.0.0 this option is in Advanced -> Use uncachable version
Changelog