Age Gate

Content can be Age Gated inline rather than on a per page basis using the [age-gate] shortcode.

The shortcode accepts the following attributes:

  • age – (int) Age to test. Default default age
  • title – (string) A message to display. Default: button labels
  • type – (string) The method to validate age, one of buttons, inputs or selects. Default: input type
  • poster – (int|string) An image ID or URL to display in the background. Default: false