v3
age_gate/form/before
age_gate/form/background
age_gate/settings
age_gate/passed
Adding custom class names and attributes
In version 3 you can easily add classes or other attributes to Age Gate elements, for example:…
age_gate_shown
JavaScript event fired when a user is shown Age Gate. Note:agegateshown is also fired for legacy reasons…
age_gate_failed
JavaScript event fired when a user fails Age Gate. Note:agegatefailed is also fired for legacy reasons but…
Advanced example
In this guide, we’ll be adding multiple fields that aren’t validated by default by Age Gate, ensure…
Available Validators
Filters
Actions
CSS Classnames
Default class names in version 3 Key V3 class name age-gate-html .age-gate__restricted.age-gate__restricted--standard age-gate-headline .age-gate__headline age-gate-wrapper .age-gate__wrapper age-gate-background-colour…
Extending Age Gate
Adding Custom Form Fields
From Age Gate v2 you can add custom fields to the challenge form. The process has been…