| 开发者 | worshipper |
|---|---|
| 更新时间 | 2026年9月24日 20:44 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
bf_agecheck_express_adapters.
A note on honesty: payment plugins are third-party code. One of the supported plugins can create an order on a route of its own that bypasses the standard WooCommerce order routes. For that route the plugin relies on hooks of the payment plugin. If those hooks change, the Site Health test tells you, and the safety net still reports such orders.
For developers
bf_agecheck_min_age changes the default minimum age.bf_agecheck_product_min_age sets the minimum age of a single product, bf_agecheck_required_age that of a whole cart or order.bf_agecheck_requires_check switches the check off, for example on a staging site. Answer it the same way in every context.bf_agecheck_customer_message changes the customer messages.bf_agecheck_date_formats adds accepted date formats.bf_agecheck_send_alert suppresses the email notice, for example on a staging site.bf_agecheck_log switches entries in the WooCommerce log off, all or by event.bf_agecheck_classic_field_hook moves the field in the classic checkout.bf_agecheck_express_adapters and bf_agecheck_express_selectors add or adjust support for express payment plugins.bf_agecheck_move_paypal_button keeps the PayPal button on the product page where it was.bf_agecheck_binding_statuses and bf_agecheck_monitor_order control which orders the safety net watches.bf_agecheck_legacy_meta_keys lists meta keys of an earlier solution, so existing orders keep their age.No. It checks a date of birth that the customer enters. If you need document verification, use a dedicated identity service.
It assists you with your age control, it cannot guarantee compliance. Which measures are sufficient depends on your products and your country. Please check the rules that apply to you.
No. The check happens where the order is placed.
Yes, per product category and per product. Open Products, Categories, edit a category and enter its minimum age. Enter 0 for no minimum age, for example for mineral water. Leave the field empty to inherit from the parent category. If a product is in several categories, the highest age applies, and for a cart the strictest product decides. A 17 year old can then buy beer, but not a cart that also contains whisky. Products whose categories carry no rule use the default minimum age, or no check at all if you prefer. For a single exception, edit the product and set its minimum age under Product data, Advanced. It overrides the categories, in both directions.
Nothing: no date of birth field, nothing stored, no notice from the safety net.
In the classic checkout and next to express buttons the browser shows a date picker. In the block checkout the field is a text field that accepts 17.05.2001 and 2001-05-17. A date picker is used there automatically once your WooCommerce version supports date fields. Dates with slashes are not accepted by default, because 01/02/2001 means different days in different countries.
By default only the result of the check and the age at the time of the order. You can choose to store the full date of birth with the order. The date of birth is never saved to the customer account.
In WooCommerce, Status, Logs, source blueforce-age-check. Every rejected order is listed with the route and the reason, such as a date of birth below the minimum age. Automatic cancellations and notices of the safety net are there too. The log contains no date of birth and no other personal data.
The order reached a binding status, but no valid age check is recorded for it. Usually a payment button skipped the checkout form. The order note names the payment method. Please clarify the age of the customer before you ship. Orders you create yourself in the admin area and subscription renewals are not reported.
They unlock as soon as the customer has entered a valid date of birth: on product and cart pages in the field above the buttons, at checkout in the date of birth field of the form. The confirmation lasts for the shop session, so the customer sees the field once.
The settings and the age rules on categories and products are removed. The age check data stored with your orders stays, because it belongs to your order history. If you store full dates of birth and want them gone, erase the personal data of the orders with the WooCommerce tools before you delete the plugin.
WooCommerce 8.9 or newer. On older versions the plugin stays inactive and tells you so in the admin area.