Filter
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.
age_gate_restricted
age_gate_unrestricted_logged_in
age_gate_select_years
Give the ability to change the lower end of the year select dropdown. add_filter('age_gate_select_years', function($min_years){ return 1950;…
age_gate_error_{$field}
Allows customisation of individual error messages. This filter takes two parameters: $message: The default message for the…
age_gate_button_message
Allows customisation to the challenge question when using buttons to validate. Two parameters are passed to the…
post_age_gate_custom_fields
Filter for adding custom form fields after the default fields…
pre_age_gate_custom_fields
Filter for adding custom form fields before the default fields…
age_gate_messaging
Applies a filter to the messages Age Gate displays. This takes three parameters: $html: The generated markup…