Option | Description |
---|---|
Default age | The age a user must be to view the content |
Restrict | Whether to restrict all content of a custom selection |
Varied ages | Adds the option to change the age required for the content. Useful if you need to restrict content by different ages e.g. movie trailers |
Restrict registration (deprecated) | Whether or not to require a date of birth when using the default Wordpress registration form. This uses the default age setting. If a valid date is provided it is stored in the user meta as u_db (string in 'YYYY-MM-DD' format) and user_dob array format of ['d' => DD, 'm' => MM, 'y' => YYYY] Deprecated in 2.0.3 |
Validate age using | Display type of input fields |
Remember | Add remember me option |
Remember length | How long to remember a user for |
Auto check remember me | Automatically checks the remember me option |
Date format | DD MM YYYY or MM DD YYYY date format |
Ignore logged in | Ignores logged in users. Note: JS mode relies on body class name .logged-in |
Rechallenge | If a user fails the challenge, allow them to retry. Additionally fires if a valid age has passed for one age and the current content has an age of a greater value in varied ages mode. |
Redirect failures | Can redirect users to a page or website if they fail the challenge. |
Name | Description | Since |
---|---|---|
Headline | The headline text shown on Age Gate | 1.0.0 |
Sub headline | Secondary headline on the Age Gate | 1.0.0 |
Remember me text | Custom text for remember me | 2.0.0 |
Yes/No sub question | The challenge question for Yes/No buttons | 1.0.0 |
Yes button text | The text to display on the "Yes" button | 2.0.0 |
No button text | The text to display on the "No" button | 2.0.0 |
Submit button text | Text added to the submit button | 1.0.0 |
Additional content | Custom copy field shown after the Age Gate | 1.0.0 |
Invalid inputs | Error displayed when an invalid input has been entered. | 2.0.0 |
Under age | Message display if a user fails the Age Gate or is too young for that content | 1.0.0 |
Generic error | If an error occurs outs side of validation or failure | 1.0.0 |
Required field message | Message displayed when an input is required. Adding {field} will output the field name. | 2.0.0 |
Numeric field message | Error message is user inputs a non numeric input the date fields. Adding {field} will output the field name. | 2.0.0 |
Minimum length message | Message display if the input does not meet required length. Adding {field} will output the field name. Adding {param} will output the required length. | 2.0.0 |
Maximum length message | Message display if the input is greater than required length. Adding {field} will output the field name. Adding {param} will output the required length. | 2.0.0 |
Maximum numeric message | If an input is greater than it's maximum number, e.g. months may only be a maximum of 12. Adding {field} will output the field name. Adding {param} will output the required length. | 2.0.0 |
Option | Description |
---|---|
Logo | Choose a logo to display on the Age Gate |
Background colour | Select the background colour of the Age Gate |
Background colour opacity* | Alter the opacity of the background colour. See not below this table |
Background image | Choose a background image for the Age Gate. From v2.0.0, this is now added to a separate element with a class of .age-gate-background |
Background image opacity* | Set the opacity of the background image. See not below this table |
Foreground colour | Choose the foreground colour of the Age gate |
Foreground colour opacity* | Set the opacity of the foreground image. See not below this table |
Text colour | Choose the text colour of the Age Gate |
Layout | Whether to include the plugin default styling |
Viewport meta tag | Adds to the Age Gate head element.Note: In JavaScript implementation, this will be added if the tag does not exist, and updated if it does. |
Change the page title | Changes the page title to "Age Verification" when a human is challenged. |
Auto tab inputs | When using input fields, the next will but focused on completion to the previous |