Created
March 20, 2024 15:04
-
-
Save dennisnissle/646027d8e7b4d3a0cb5292ef0a3766c3 to your computer and use it in GitHub Desktop.
Register a custom min age
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_gzd_age_verification_min_ages', function( $min_ages ) { | |
$min_ages[14] = '>= 14 Jahre'; | |
return $min_ages; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment