Title: Age Gator
Author: Chris Geelhoed
Published: <strong>2019 年 8 月 30 日</strong>
Last modified: 2020 年 1 月 18 日

---

搜索插件

![](https://ps.w.org/age-gate-plus/assets/banner-772x250.png?rev=2148131)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/age-gate-plus/assets/icon.svg?rev=2148131)

# Age Gator

 作者：[Chris Geelhoed](https://profiles.wordpress.org/chrisgeelhoed/)

[下载](https://downloads.wordpress.org/plugin/age-gate-plus.zip)

 * [详情](https://cn.wordpress.org/plugins/age-gate-plus/#description)
 * [评价](https://cn.wordpress.org/plugins/age-gate-plus/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/age-gate-plus/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/age-gate-plus/#developers)

 [支持](https://wordpress.org/support/plugin/age-gate-plus/)

## 描述

[Age Gator](https://www.age-gator.com/) is a WordPress plugin specifically designed
to guard sensitive content (alcohol, gambling, x-rated, etc) from underage users.
Featuring an abundance of customizable settings, the display and behavior of the
overlay can be easily configured to suit a variety of use cases.

**Features**

 * Select from templates for Beer, Smoking, Vaping, Marijuana, or Adult or customize
   for your unique use case
 * Checks age of user before showing content
 * Edit appearance and text directly from the Customizer live preview screen
 * User prompt may be set to a yes/no button, age entry, date of birthday entry,
   or confirmation checkbox
 * Optional Retry button
 * Remember previously passed users
 * Set previously passed user bypass expiration time
 * Limit number of attempts
 * Ignore logged in users
 * Customized failure and success messages
 * Show age gate on all pages, all pages except those specified, or only on pages
   specified (Whitelist or Blacklist)
 * Wilcard support for setting whitelisted and blacklisted pages
 * Caching compatible

[Preview Features](https://www.age-gator.com/#feature-details)

## 屏幕截图

 * [[
 * Admin Customizer Age Gate Example
 * [[
 * User Facing Age Gate Example

## 安装

 1. Upload the ‘age-gator’ folder to the ‘/wp-content/plugins/’ directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Click on “Edit in Customizer” and change your settings

## 常见问题

  How can I get started?

After you install and activate the plugin, a new tab called “Age Gator” should appear
on the customizer screen (found in the appearance section). From here, you can select
the starter template that best matches your use case, and edit the other options
from there.

  I want to remember users that have already passed the age gate and allow them 
to skip the verification. How can I do that?

There is an option available under settings called “Remember User” that will do 
this. You can also enable the “Ignore Logged in Users” option.

  What happens when a user fails the age gate?

That depends on what settings are enabled. The default behavior is to simply show
a failure message (eg “Sorry, but you must be 21 years of age to visit this webpage”),
but the user can refresh the webpage and attempt the age gate again. If you’d like
to provide users with an easy way to retry, you can enable the “Show Retry Button”
setting. If you don’t want to allow users to retry the age gate at all, you can 
check the “Limit Attempts” option and set the “Max Attempts” value to 1.

  How can I set the age gate to display on only certain pages?

You can choose to have the age gate appear on all pages of your website or only 
on some pages. If you don’t want the age gate to appear on all pages, you can select
to use either a whitelist or a blacklist. First, select the “Pages” tab from the
Age Gator customizer area. A blacklist approach will show the age gate on all pages
except those specified, and a whitelist approach will only show the age gate on 
the pages specified. From here, add a relative url for each page that you want to
whitelist/blacklist. For example, if your website is “example.com”, and the page
you wanted to whitelist/blacklist was located at “example.com/spirits/”, then you
would enter “/spirits/”. Each item that appears on the whitelist/blacklist should
be put on a new line. [Preview](https://www.age-gator.com/#feature-enable/disable-specific-pages)

  I see a cancel button at the top of the age gate modal, but I don’t want my age
gate to be dismissible to users. What gives?

The cancel button is only displayed to logged in admin users – it doesn’t appear
to regular visitors.

  I’ve used the appearance Customizer to modify some of the details, but still can’t
quite get it to look the way I want. Can you help?

Yes, although the plugin features an extensive list of editable properties, your
age gate’s appearance will still depend on the base CSS of your WordPress theme.
If you need a pro to make it pixel perfect, please make a [support request](https://www.age-gator.com/#contact)

  Where can I preview Age Gator’s features?

The feature list can be explored at [https://www.age-gator.com](https://www.age-gator.com/)

## 评价

![](https://secure.gravatar.com/avatar/bc465c339223ab1880b2c5914157cc9306b739de1f34a29ef337c33147882f62?
s=60&d=retro&r=g)

### 󠀁[TOP](https://wordpress.org/support/topic/top-1684/)󠁿

 [duivelkewilly](https://profiles.wordpress.org/desmetjozef/) 2024 年 11 月 24 日

This plugin hasn’t been updated for 5 years, but it works better than the dozen 
or so I tested. Worth 10 stars

![](https://secure.gravatar.com/avatar/7e7efe49957d4467ff8c5f719234cfbbed958e5dbb2319a5a3db65fb47ba0017?
s=60&d=retro&r=g)

### 󠀁[Does a very good job, very simple](https://wordpress.org/support/topic/does-a-very-good-job-very-simple/)󠁿

 [lucascn](https://profiles.wordpress.org/lucascn/) 2022 年 5 月 26 日

Awesome plugin, easy to customise and full of options !

![](https://secure.gravatar.com/avatar/7a9645ee49440218c00f186f378181dabee81cf90b2549654bd08da8cb9d0a81?
s=60&d=retro&r=g)

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-26577/)󠁿

 [srsarkis](https://profiles.wordpress.org/srsarkis/) 2020 年 6 月 13 日

Superbly done neat and easy to use exactly what I was looking for. Thank you

![](https://secure.gravatar.com/avatar/2a759a77e123430fc273c91f1c917aed8a06c965e1f67461fbe69e37551ab090?
s=60&d=retro&r=g)

### 󠀁[Works like a charm](https://wordpress.org/support/topic/works-like-a-charm-1681/)󠁿

 [lbazso](https://profiles.wordpress.org/lbazso/) 2020 年 4 月 20 日

Really easy to use and highly customizable. Just what I was looking for. Thank you.

![](https://secure.gravatar.com/avatar/af14d8e91db88a87d1bc2b49d13827099c5daa53ec6228e868afebba25b279f5?
s=60&d=retro&r=g)

### 󠀁[I’ve used them all. it’s the best.](https://wordpress.org/support/topic/ive-used-them-all-its-the-best/)󠁿

 [nykes1233](https://profiles.wordpress.org/nykes1233/) 2020 年 1 月 18 日

best of all thanks age gator

 [ 阅读所有5条评价 ](https://wordpress.org/support/plugin/age-gate-plus/reviews/)

## 贡献者及开发者

「Age Gator」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Chris Geelhoed ](https://profiles.wordpress.org/chrisgeelhoed/)

「Age Gator」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/age-gate-plus/contributors)
为本插件所做的贡献。

[帮助将「Age Gator」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/age-gate-plus)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/age-gate-plus/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/age-gate-plus/)，或通过[RSS](https://plugins.trac.wordpress.org/log/age-gate-plus/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/age-gate-plus/)。

## 更新日志

#### 1.00

 * Initial release

#### 1.02

 * Adds starter templates

#### 1.03

 * Makes uninstall process cleaner

#### 1.04

 * Makes age gate dismissible to admin users

#### 1.05

 * Adds support for redirects on fail

#### 1.06

 * Fixes bug preventing site from scrolling after user passes age gate

## 额外信息

 *  版本 **1.06**
 *  最后更新：**6 年前**
 *  活跃安装数量 **400+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **5.3.21**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/age-gate-plus/) 和 [Italian](https://it.wordpress.org/plugins/age-gate-plus/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/age-gate-plus)
 * 标签
 * [adults-only](https://cn.wordpress.org/plugins/tags/adults-only/)[age](https://cn.wordpress.org/plugins/tags/age/)
   [age verification](https://cn.wordpress.org/plugins/tags/age-verification/)[age verify](https://cn.wordpress.org/plugins/tags/age-verify/)
   [modal](https://cn.wordpress.org/plugins/tags/modal/)
 *  [高级视图](https://cn.wordpress.org/plugins/age-gate-plus/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  5 条 5 星评价     ](https://wordpress.org/support/plugin/age-gate-plus/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/age-gate-plus/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/age-gate-plus/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/age-gate-plus/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/age-gate-plus/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/age-gate-plus/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/age-gate-plus/reviews/)

## 贡献者

 *   [ Chris Geelhoed ](https://profiles.wordpress.org/chrisgeelhoed/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/age-gate-plus/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.chrisgeelhoed.com/)