Minimum Age for WooCommerce v1.1.0 has been released. It supports WooCommerce HPOS (high performance order storage); adds filter hook mininum_age_woo_show_question
; is tested to WooCommerce 8.2.
WooCommerce HPOS
WooCommerce added optional support for High Performance Order Storage (HPOS) in version 7.1, requiring any custom order data to be manipulated using the Order object. This release makes the necessary changes, and announces its compatibility to WooCommerce.
New filter hook for conditional logic
There is a new filter hook, mininum_age_woo_show_question
. It 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.
You can update to the latest version from your WordPress plugin admin page. Here’s the full changelog for Minimum Age for WooCommerce.