v3.6.0

  • Download
  • Support
  • News
  • Documentation
  • Addons

Home / Documentation / Version 2 / Hooks Reference / Filters / age_gate_restricted

age_gate_restricted

You are reading the documentation for Age Gate 2.x. Switch to the documentation for 3.x.

Description

Fired directly before Age Gate marks content as requiring challenge.

This accepts two parameters:

  • $restricted: true
  • $meta Meta data for the current page

Related documentation:

  • Appearance
← age_gate_validation
age_gate_unrestricted_unrestricted →
  • Version 2
    • Getting Started
      • Installation
      • Upgrading
    • CMS Settings
      • Restriction settings
      • Messaging
      • Appearance
      • Advanced
      • Access Settings
    • Shortcodes
      • Age Gate
    • Guides
      • Working with other plugins
      • Adding Custom Form Fields
        • Advanced example
        • Available Validators
    • JavaScript
      • Hooks
      • Event Listeners
    • Styling
      • Adding custom markup
      • CSS Reference
    • Hooks Reference
      • Actions
        • age_gate_form_{$status}
        • age_gate_add_validators
      • Filters
        • age_gate_select_years
        • age_gate_validation
        • age_gate_restricted
        • age_gate_unrestricted_unrestricted
        • age_gate_validation_messages
        • age_gate_field_names
        • age_gate_age_output
        • age_gate_unrestricted_bot
        • age_gate_archive_{$type}
        • age_gate_unrestricted_bypass
        • age_gate_before
        • age_gate_loading_icon
        • age_gate_logo
        • age_gate_messaging
        • pre_age_gate_custom_fields
        • post_age_gate_custom_fields
        • age_gate_after
        • age_gate_button_message
        • age_gate_error_{$field}
    • Miscellaneous
      • Screen types
    • Extensions
      • Age Gate Regions

Age Gate

© 2025. All Rights Reserved

Twitter

Site by asylum digital

Navigation

  • Home
  • News
  • Addons

Documentation

Support

  • Support forums
  • FAQs
  • Feedback

Legal

  • Terms & Conditions
  • Privacy Policy
  • Cookie Policy
  • Cookie settings

This website uses cookies

We use cookies to provide you with a better service. If you allow cookies without changing your settings, we'll assume that you are happy to receive all cookies on this website. However, you can change your cookie settings at any time.

I consent
Find out more
Change settings