Title: Minimum Age for WooCommerce
Author: webaware
Published: <strong>2018 年 9 月 29 日</strong>
Last modified: 2026 年 5 月 12 日

---

搜索插件

![](https://ps.w.org/minimum-age-woocommerce/assets/banner-772x250.png?rev=2590632)

![](https://ps.w.org/minimum-age-woocommerce/assets/icon-256x256.png?rev=2590632)

# Minimum Age for WooCommerce

 作者：[webaware](https://profiles.wordpress.org/webaware/)

[下载](https://downloads.wordpress.org/plugin/minimum-age-woocommerce.1.1.0.1.zip)

 * [详情](https://cn.wordpress.org/plugins/minimum-age-woocommerce/#description)
 * [评价](https://cn.wordpress.org/plugins/minimum-age-woocommerce/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/minimum-age-woocommerce/#developers)

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

## 描述

Add a checkout question for the customer’s date of birth, and enforce a minimum 
age. The customer cannot checkout if their given date of birth means they are younger
than the minimum age.

### Requirements

 * WooCommerce 3.0 or greater
 * PHP 5.6 or greater

### Translations

If you’d like to help out by translating this plugin, please [sign up for an account and dig in](https://translate.wordpress.org/projects/wp-plugins/minimum-age-woocommerce).

### Contributions

 * [Fork me on GitHub](https://github.com/webaware/minimum-age-woocommerce/)

### Privacy

The customer’s date of birth is recorded, so that transactions can be audited for
compliance with minimum age legislation. The customer’s date of birth is transmitted
in order confirmation and notification emails. This information is not shared with
any other parties.

## 屏幕截图

[⌊WooCommerce settings⌉⌊WooCommerce settings⌉[

WooCommerce settings

[⌊The birth date question in the checkout, showing an error message⌉⌊The birth date
question in the checkout, showing an error message⌉[

The birth date question in the checkout, showing an error message

## 常见问题

### How can I set the minimum age?

The default minimum age is 18. You can change it the WooCommerce settings:

WooCommerce > Settings > Minimum Age > Minimum age

### How can I change the order of the date fields?

The default order of the birth date fields is day, month, year. You can choose a
different layout in the settings:

WooCommerce > Settings > Minimum Age > Date layout

### Can I show the date of birth question conditionally?

There is a filter hook `minimum_age_woo_show_question` that allows developers to
hide the date of birth question if it isn’t required, e.g. only show for products
in certain categories. It accepts a single boolean parameter, and returns a boolean:
true to show the question, otherwise false.

## 评价

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

### 󠀁[Excellent](https://wordpress.org/support/topic/excellent-10880/)󠁿

 [FannyV](https://profiles.wordpress.org/fannyv/) 2021 年 6 月 25 日

Staring July 1 2021 for online shops in The Netherlands when selling alcohol age
verification is mandatory. This is exactly what I needed, simple and effective. 
Thank you for providing!

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

### 󠀁[Great plugin but needs a translation](https://wordpress.org/support/topic/great-plugin-but-needs-a-translation/)󠁿

 [Gilles](https://profiles.wordpress.org/alizesonline/) 2021 年 4 月 15 日

Great plugin, it is light and it works as expected. But there is an urgent need 
to have the customer form and the errors translated to various languages. I updated
the file “class.Checkout.php” but this is something I have to do every time there
is an update. Please use po/mo files instead!

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

### 󠀁[Works great!](https://wordpress.org/support/topic/works-great-7330/)󠁿

 [karssnijders](https://profiles.wordpress.org/karssnijders/) 2020 年 12 月 16 日

Works great and does what it has to do!

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

### 󠀁[Nice Plugin](https://wordpress.org/support/topic/nice-plugin-2971/)󠁿

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

Thank you for providing a nice plugin. It works.

 [ 阅读所有4条评价 ](https://wordpress.org/support/plugin/minimum-age-woocommerce/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ webaware ](https://profiles.wordpress.org/webaware/)

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

[帮助将「Minimum Age for WooCommerce」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/minimum-age-woocommerce)

### 对开发感兴趣吗?

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

## 更新日志

The full changelog can be found [on GitHub](https://github.com/webaware/minimum-age-woocommerce/blob/master/changelog.md).
Recent entries:

### 1.1.0

Released 2023-10-31

 * fixed: support for WooCommerce HPOS (high performance order storage)
 * added: filter hook `minimum_age_woo_show_question` allowing hookers to conditionally
   suppress the age question
 * changed: marked as tested up to WooCommerce 8.2

## 额外信息

 *  版本 **1.1.0.1**
 *  最后更新：**1 月前**
 *  活跃安装数量 **300+**
 *  WordPress 版本 ** 4.2 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [Dutch](https://nl.wordpress.org/plugins/minimum-age-woocommerce/) 、 [English (Australia)](https://en-au.wordpress.org/plugins/minimum-age-woocommerce/)、
   [English (Canada)](https://en-ca.wordpress.org/plugins/minimum-age-woocommerce/)、
   [English (New Zealand)](https://en-nz.wordpress.org/plugins/minimum-age-woocommerce/)、
   [English (South Africa)](https://en-za.wordpress.org/plugins/minimum-age-woocommerce/)、
   [English (UK)](https://en-gb.wordpress.org/plugins/minimum-age-woocommerce/) 、
   [English (US)](https://wordpress.org/plugins/minimum-age-woocommerce/) 和 [Portuguese (Brazil)](https://br.wordpress.org/plugins/minimum-age-woocommerce/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/minimum-age-woocommerce)
 * 标签
 * [age](https://cn.wordpress.org/plugins/tags/age/)[checkout](https://cn.wordpress.org/plugins/tags/checkout/)
   [woocommerce](https://cn.wordpress.org/plugins/tags/woocommerce/)
 *  [高级视图](https://cn.wordpress.org/plugins/minimum-age-woocommerce/advanced/)

## 评级

 4.8 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ webaware ](https://profiles.wordpress.org/webaware/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](https://shop.webaware.com.au/donations/?donation_for=Minimum+Age+for+WooCommerce)