Developer

age_gate/validation/all_rules

Allows developers to add to the final validation rules…

Read more

age_gate/ancestor/depth

When using ancestor inheritance, how far up the tree should Age Gate look for options…

Read more

age_gate/cookie/time

Change the time scale of the default session. Does not affect users selecting remember me. Expects one…

Read more

age_gate/cookie/length

Change the length of the default session. Does not affect users selecting remember me.

Read more

Cookie name

If desired, you can change the default cookie name. This can also be achieved via a filter,…

Read more

Deprecated

All other hooks not listed have been removed in version 3…

Read more

age_gate_shown

JavaScript event fired when a user is shown Age Gate. Note:agegateshown is also fired for legacy reasons…

Read more

age_gate_failed

JavaScript event fired when a user fails Age Gate. Note:agegatefailed is also fired for legacy reasons but…

Read more

Advanced example

In this guide, we’ll be adding multiple fields that aren’t validated by default by Age Gate, ensure…

Read more

Adding Custom Form Fields

From Age Gate v2 you can add custom fields to the challenge form. The process has been…

Read more