Developer
age_gate/ancestor/depth
When using ancestor inheritance, how far up the tree should Age Gate look for options…
age_gate/cookie/time
Change the time scale of the default session. Does not affect users selecting remember me. Expects one…
age_gate/cookie/length
Change the length of the default session. Does not affect users selecting remember me.
JavaScript
Cookie name
If desired, you can change the default cookie name. This can also be achieved via a filter,…
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
Adding Custom Form Fields
From Age Gate v2 you can add custom fields to the challenge form. The process has been…