v2

Available Validators

Below are all the available validation methods that can be used when creating custom form fields for…

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

age_gate_button_message

Allows customisation to the challenge question when using buttons to validate. Two parameters are passed to the…

Read more

age_gate_after

Adds custom content to the end of .age-gate-wrapper…

Read more

post_age_gate_custom_fields

Filter for adding custom form fields after the default fields…

Read more

pre_age_gate_custom_fields

Filter for adding custom form fields before the default fields…

Read more

age_gate_messaging

Applies a filter to the messages Age Gate displays. This takes three parameters: $html: The generated markup…

Read more

age_gate_logo

Allows the logo set for Age Gate to customised. This accepts two parameters: $html: the generated markup…

Read more

age_gate_loading_icon

Allows customisation of the loading icon used in JavaScript mode. Receives the default SVG markup: <svg version="1.1"…

Read more

age_gate_before

Adds custom content to the start of .age-gate-wrapper Note: If using a background image set in…

Read more

age_gate_archive_{$type}

Fired on certain archive types as follows: age_gate_archive_day age_gate_archive_month age_gate_archive_year age_gate_archive_author age_gate_archive_archive age_gate_archive_notfound…

Read more

age_gate_age_output

Allows customisation of the final age restriction of the content. This is passed two parameters $age: The…

Read more

age_gate_unrestricted_unrestricted

Fires in selected content mode if no restriction is set…

Read more

age_gate_unrestricted_bypass

Fires when the content has been set to bypass in all content mode…

Read more

age_gate_unrestricted_bot

Fired when Age Gate detects the visitor is a crawler…

Read more