Black Friday: 30% off all plugins from 24 Nov · Join the list for early access →

Overview

An age check before visitors enter the site or some product categories: yes/no buttons or a date of birth, remembered for as long as you choose.

  • 18+ or 21+ age check
  • Whole site or some categories
  • Works with page caching

Best for: Wine, spirits, CBD, vape and adult products

Installation

  1. Download agely-age-verification.zip from My account › My plugins or from your order email. Do not unzip it.
  2. In WordPress, go to Plugins › Add New Plugin › Upload Plugin, choose the zip and click Install Now, then Activate.

Requires WordPress 6.0+, PHP 7.4+, WooCommerce 7.0+. Works with any theme, block themes and page builders.

Features

  • Minimum age of your choice (18, 21…)
  • Yes / No buttons or a date of birth
  • Whole site or only some product categories and their products
  • Too young: a message or a redirection to another site
  • Remembered for the number of days you choose
  • Works with page caching (the check runs in the browser)
  • Your logo, texts, colors and a legal notice; blurred background

Shortcodes

Paste a shortcode in any page, post, widget or page builder text block.

  • [agely_preview]

Options of each shortcode are described in the Features above and in the plugin settings page.

For developers

Customize the plugin from your theme’s functions.php or a small plugin, without editing its files (your changes survive updates).

Filters

  • agely_active
  • agely_applies
  • agely_sanitize
add_filter( 'agely_active', function ( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

Actions

  • agely_admin_after_form
  • agely_admin_before_form
  • agely_admin_form_end

Updates

Updates are free. When a new version is out, it appears in Dashboard › Updates of your WordPress site and you can install it in one click, or turn on automatic updates in Plugins. This works for the zip downloaded from your Woo-Plugins account; older copies can be replaced by downloading the latest version from My plugins. See the changelog.

Frequently asked questions

Does it work with caching plugins?

Yes, the page is cached normally and the check is done in the visitor’s browser.

Is the privacy policy page blocked?

No, the privacy policy page stays readable without the check.

Still stuck?

Write to us with your WordPress and WooCommerce versions and what you tried: we answer by email.

Contact support