Age Gate

Àpèjúwe

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 Ìtumọ̀ Yorùbá: – 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

Àwọn àwòrán ìbòjú

  • 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Ìtumọ̀ Yorùbá: ’s setting, restrict posts and exclude settings from certain post types.

Ìgbéwọlẹ̀

  1. Upload the ‘age-gate’ folder to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. 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Ìtumọ̀ Yorùbá: ’t wish to display Age Gate options on.

FAQ

I canÌtumọ̀ Yorùbá: ’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Ìtumọ̀ Yorùbá: ’s your site

IÌtumọ̀ Yorùbá: ’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

Àwọn àgbéyẹ̀wò

Ṣẹrẹ 15, 2026
It does what it promises with several configuration options.
Ọ̀pẹ 26, 2025
This plugin was exactly what I needed to restrict a few specific products and a page to 18+. The setup was very easy and I really appreciate the options for styling to make it fit my site. 5 stars!
Ògún 5, 2025
Support is non existent these days. Plugin crashes site on last few versions. Opened support thread which has received no reply in months. Moving to alternative plugin now.
Agẹmọ 20, 2025
Absolutely miserable ‘documentation’ on their website with no actual instructions on how to do a single thing. No walkthrough of the setup steps. No video available showing how it works. Just series of settings pages with on off switches. No clue how to install this to restrict a particular link or post, and even worse no place to even look it up. If youÌtumọ̀ Yorùbá: ’re going to go through the hassle of creating software, spend ten minutes writing a little guide for it.
Èbìbí 8, 2025
WordPress 6.8.1 👍 THanks!
Ògún 14, 2024
The plugin has a red flag on the PageSpeed Report that says: “Polyfills and transformations allow older browsers to use new JavaScript features. However, many are not necessary for modern browsers. For your integrated JavaScript, adopt a modern script implementation strategy by detecting module/nomodule functionality to reduce the amount of code sent to modern browsers while maintaining compatibility with legacy browsers.” Edit: The issue has been fixed. IÌtumọ̀ Yorùbá: ’ll rate the plugin according to this edit.
Ka gbogbo àwọn àgbéyẹ̀wò 64

Àwọn Olùkópa & Olùgbéejáde

“Age Gate” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin yìí.

Àwọn Olùkópa

A ti túmọ̀ “Age Gate” sí àwọn èdè agbègbè 7. Ọpẹ́lọpẹ́ fún àwọn atúmọ̀ èdè fún àwọn ìkópa wọn.

Túmọ̀ “Age Gate” sí èdè rẹ.

Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

Ṣàwárí koodu, ṣàyẹ̀wò ibi ìpamọ́ SVN, tàbí ṣe àgbékalẹ̀ sí àkọsílẹ̀ ìdàgbàsókè nípasẹ̀ RSS.

Àkọsílẹ̀ àwọn àyípadà

3.7.2

  • Fixed Ìtumọ̀ Yorùbá: – Template override with child themes

3.7.1

  • Fixed Ìtumọ̀ Yorùbá: – Fatal error when storing messages with a multilingual plugin

3.7.0

  • Fixed Ìtumọ̀ Yorùbá: – Stored XSS vulnerabilities responsibly reported by Dmitrii Ignatyev from CleanTalk
  • Fixed Ìtumọ̀ Yorùbá: – Shortcode not working on non-post post types
  • Changed Ìtumọ̀ Yorùbá: – Markdown processing from Parsedown to commonmark

3.6.2

  • Fixed Ìtumọ̀ Yorùbá: – Fatal error when used with WOOF/Husky

3.6.1

  • Fixed Ìtumọ̀ Yorùbá: – Early loading of text domain

3.6.0

  • Security Ìtumọ̀ Yorùbá: – Removed developer settings endpoint.
  • Removed Ìtumọ̀ Yorùbá: – unused media rest route
  • Fixed Ìtumọ̀ Yorùbá: – Missing nonce field on terms content
  • Fixed Ìtumọ̀ Yorùbá: – Missing sanitation

3.5.4

  • Security Ìtumọ̀ Yorùbá: – Fixed Path Traversal in REST API.
  • Fixed Ìtumọ̀ Yorùbá: – Logo image missing width and height attributes

3.5.3

  • Fixed Ìtumọ̀ Yorùbá: – No rechallenging when using munged options
  • Added Ìtumọ̀ Yorùbá: – PHP title change support for Rank Math SEO

3.5.2

  • Fixed Ìtumọ̀ Yorùbá: – Auto-update was unavailable

3.5.1

  • Fixed Ìtumọ̀ Yorùbá: – Deprecations when using builders

3.5.0

  • Removed Ìtumọ̀ Yorùbá: – deprecated hook fallbacks
  • Added Ìtumọ̀ Yorùbá: – pagination for terms in content settings
  • Fixed Ìtumọ̀ Yorùbá: – Term settings being incorrectly stored when using WPML

3.4.1

  • Fixed Ìtumọ̀ Yorùbá: – Issue in some multilingual sites where settings were incorrectly translated
  • Fixed Ìtumọ̀ Yorùbá: – WOOF/Husky for non query string pages
  • Fixed Ìtumọ̀ Yorùbá: – PageSpeed warnings about polyfills from third-party

3.4.0

  • Added Ìtumọ̀ Yorùbá: – Integration for WOOF/Husky

3.3.3

  • Added empty file to fallback view directory

3.3.2

  • Changed Ìtumọ̀ Yorùbá: – VH height css variable
  • Fixed Ìtumọ̀ Yorùbá: – Age Gate meta box displaying on shop orders using HPOS

3.3.1

  • Changed Ìtumọ̀ Yorùbá: – default Age Gate z-index
  • Fixed Ìtumọ̀ Yorùbá: – Long missing headline override settings
  • Fixed Ìtumọ̀ Yorùbá: – Issue with certain transition changes not applying to the JS version

3.3.0

  • Fixed Ìtumọ̀ Yorùbá: – video playback on some devices (playsinline)
  • Fixed Ìtumọ̀ Yorùbá: – Query params stripped when redirecting (standard mode)
  • Fixed Ìtumọ̀ Yorùbá: – markdown not rendering as it should in some locations
  • Added Ìtumọ̀ Yorùbá: – Options to change header elements via settings
  • Added Ìtumọ̀ Yorùbá: – Disable Age Gate option without need for deactivation
  • Changed Ìtumọ̀ Yorùbá: – method of blurring background content
  • Removed Ìtumọ̀ Yorùbá: – obsolete age_gate/presentation/blur/ignore filter

3.2.0

  • Added Ìtumọ̀ Yorùbá: – Option to store data in localStorage instead of cookies
  • Added Ìtumọ̀ Yorùbá: – Filter to final validation rules
  • Fixed Ìtumọ̀ Yorùbá: – Multilingual messages not translating if langauage key is hyphenated
  • Fixed Ìtumọ̀ Yorùbá: – Deprecations in new PHP versions
  • Fixed Ìtumọ̀ Yorùbá: – Issue were some ages would retrigger the modal
  • Fixed Ìtumọ̀ Yorùbá: – Errors in loading text domain
  • Fixed Ìtumọ̀ Yorùbá: – Support for offloaded media

3.1.2

  • Fixed Ìtumọ̀ Yorùbá: – Fatal error under PHP8.1 when storing access settings
  • Fixed Ìtumọ̀ Yorùbá: – Error on activation if administrator role non-existent

3.1.1

  • Fixed Ìtumọ̀ Yorùbá: – URL comparison in Safari

3.1.0

  • Added Ìtumọ̀ Yorùbá: – option to inherit status from ancestors
  • Added Ìtumọ̀ Yorùbá: – option for custom date error message
  • Fixed Ìtumọ̀ Yorùbá: – admin messages showing erroneously
  • Fixed Ìtumọ̀ Yorùbá: – success redirects in JS mode

3.0.13

  • Added Ìtumọ̀ Yorùbá: – polyfill for mbstring

3.0.12

  • Fixed Ìtumọ̀ Yorùbá: – Issue in Standard mode where passing Age Gate would empty shopping cart

3.0.11

  • Fixed Ìtumọ̀ Yorùbá: – Issue where Breeze cache wouldnÌtumọ̀ Yorùbá: ’t render Age Gate.
  • Updated Ìtumọ̀ Yorùbá: – translation file

3.0.10

  • Fixed Ìtumọ̀ Yorùbá: – Error message translation
  • Fixed Ìtumọ̀ Yorùbá: – Autotabbing when using regions addon
  • Fixed Ìtumọ̀ Yorùbá: – Multilingual messages not translation if langauage is the same
  • Fixed Ìtumọ̀ Yorùbá: – potential error thrown in array flatterning method
  • Fixed Ìtumọ̀ Yorùbá: – Anonymous mode allowing undesired users through
  • Fixed Ìtumọ̀ Yorùbá: – Selects not repopulating in PHP mode
  • Added Ìtumọ̀ Yorùbá: – option to sort select years
  • Added Ìtumọ̀ Yorùbá: – option to render loading icon as image
  • Changed Ìtumọ̀ Yorùbá: – default minimum select year to 1900
  • Changed Ìtumọ̀ Yorùbá: – button submission handler to (hopefully) resolve lingering mobile issues
  • Removed Ìtumọ̀ Yorùbá: – unused admin modal styles

3.0.9

  • Fixed Ìtumọ̀ Yorùbá: – remove buttonshowing even with no image selected
  • Added Ìtumọ̀ Yorùbá: – Legacy hook for age_gate_logo
  • Added Ìtumọ̀ Yorùbá: – New hooks for logo manipulation

3.0.8

  • Fixed Ìtumọ̀ Yorùbá: – Multilingual fields missing since 3.0.6
  • Added Ìtumọ̀ Yorùbá: – CSS Variable Ìtumọ̀ Yorùbá: –ag-transition-timing
  • Changed Ìtumọ̀ Yorùbá: – CSS Variable Ìtumọ̀ Yorùbá: –ag-transition to Ìtumọ̀ Yorùbá: –ag-transition-duration

3.0.7

  • Fixed Ìtumọ̀ Yorùbá: – Wrong input being selected by default when not DDMMYYYY
  • Fixed Ìtumọ̀ Yorùbá: – JS hooks continuously rechallenging users
  • Fixed Ìtumọ̀ Yorùbá: – toolbar toggle inoperable on insecure sites

3.0.6

  • Fixed Ìtumọ̀ Yorùbá: – JS Hook when age gate already passed
  • Fixed Ìtumọ̀ Yorùbá: – JavaScript exit transitions
  • Added Ìtumọ̀ Yorùbá: – AJAX fallback if REST unreachable
  • Added Ìtumọ̀ Yorùbá: – age_gate_hidden JavaScript event
  • Changed Ìtumọ̀ Yorùbá: – Admin nav behaviour
  • Changed Ìtumọ̀ Yorùbá: – Admin validation behaviour

3.0.5

  • Fixed Ìtumọ̀ Yorùbá: – typos in README
  • Fixed Ìtumọ̀ Yorùbá: – additional tools not displaying
  • Fixed Ìtumọ̀ Yorùbá: – per page controls not showing
  • Added Ìtumọ̀ Yorùbá: – checks for dependencies
  • Added Ìtumọ̀ Yorùbá: – filter for cookie domain
  • Changed Ìtumọ̀ Yorùbá: – default cookie domain is current domain
  • Changed Ìtumọ̀ Yorùbá: – cookie name filter
  • Changed Ìtumọ̀ Yorùbá: – default colours in line with v2
  • Changed Ìtumọ̀ Yorùbá: – Legacy hook class name

3.0.4

  • Fixed Ìtumọ̀ Yorùbá: – Restriction display in admin
  • Fixed Ìtumọ̀ Yorùbá: – Implemented new polyfill for Safari event submitter
  • Fixed Ìtumọ̀ Yorùbá: – Phantom validation errors in Content section
  • Fixed Ìtumọ̀ Yorùbá: – Double escaping in buttons prompt
  • Added Ìtumọ̀ Yorùbá: – cleanup for previous cron schedule
  • Changed Ìtumọ̀ Yorùbá: – Removed use of PHP short tags

3.0.3

  • Fixed Ìtumọ̀ Yorùbá: – Fatal error under some settings combination
  • Fixed Ìtumọ̀ Yorùbá: – Hide display of default scrollbar

3.0.2

  • Fixed Ìtumọ̀ Yorùbá: – 0 valued opacity not being reflected on the site
  • Fixed Ìtumọ̀ Yorùbá: – iOS Safari scrolling when Age Gate visible
  • Fixed Ìtumọ̀ Yorùbá: – Older versions of Safari not operating with buttons
  • Fixed Ìtumọ̀ Yorùbá: – Inability to store appearance settings
  • Fixed Ìtumọ̀ Yorùbá: – Improved data sanitation
  • Fixed Ìtumọ̀ Yorùbá: – Custom title output in js/munge mode
  • Added Ìtumọ̀ Yorùbá: – CSS variable for loader colour
  • Added Ìtumọ̀ Yorùbá: – Default post types to ignore in admin e.g. shop orders or attachment
  • Changed Ìtumọ̀ Yorùbá: – Default max-width on logo to be 100%
  • Changed Ìtumọ̀ Yorùbá: – Button styles prefixed with element
  • Changed Ìtumọ̀ Yorùbá: – Cookie length filter to be time and length

3.0.1

  • Added Ìtumọ̀ Yorùbá: – Standard cookie length filter age_gate/cookie/length
  • Added Ìtumọ̀ Yorùbá: – PHP version check message
  • Fixed Ìtumọ̀ Yorùbá: – per content toggle display incorrect status
  • Fixed Ìtumọ̀ Yorùbá: – minor stylistic elements for wider default support
  • Fixed Ìtumọ̀ Yorùbá: – Javascript error in focus trap when using buttons
  • Fixed Ìtumọ̀ Yorùbá: – Excessively strict validation rules
  • Fixed Ìtumọ̀ Yorùbá: – Escaped characters showing on front end
  • Removed Ìtumọ̀ Yorùbá: – API Error warning as return false flags
  • Removed Ìtumọ̀ Yorùbá: – Unused API endpoint

3.0.0

  • Complete rewrite
  • Improved Taxonomy inheritance
  • Removed: Use of admin-ajax in JS mode
  • Removed: Custom CSS editor
  • Removed: jQuery dependencies
  • Changed: Custom editor to support markdown and be stricter
  • Added: Ability to override templates in theme
  • Added: Easily add classes and other attributes
  • Added: Option to load Age Gate earlier in the DOM
  • Various performance and security improvements