Services
Case Studies Testimonials About Contact Let's Talk

Documentation

Comprehensive guides for our premium plugins and themes.

Navigation

Browse Topics

Advanced Age Verification Popup Pro Feature
Last updated: September 13, 2026

Advanced Tools & Developer Hooks

The Advanced / Tools module is designed for developers, agencies, and power users who need strict control over server caching, programmatic filtering, and rapid site deployments. This section breaks down how to configure custom cookies, utilize WordPress filters, and migrate your configurations.

1. Caching & Cookies Configurations

Aggressive page caching plugins (like WP Rocket, LiteSpeed Cache, or W3 Total Cache) can sometimes cache the age verification popup, causing it to appear for users who have already verified their age.

  • Custom Cookie Name: By default, the plugin drops an age_verified cookie upon successful verification. If your caching system requires a specific prefix to bypass the cache (e.g., wordpress_logged_in_ or bypass_cache_), you can easily rename the verification cookie here.

  • Cookie Path: By default, the cookie path is set to / (the entire root domain). If you only want the age gate to apply to a specific subdirectory (e.g., [yourdomain.com/shop/](https://yourdomain.com/shop/)), change this to /shop/.

Pro Tip: If you change your Custom Cookie Name, remember to clear your website's server cache and CDN cache (like Cloudflare) for the changes to take effect immediately.

2. Developer Hooks (Filters)

If you are building a custom theme or need conditional logic that goes beyond the standard dashboard settings, you can use our built-in WordPress filters to programmatically override the plugin's frontend data.

Modify Frontend JS Data (avp_frontend_data) This filter allows you to dynamically alter data points before they are passed to the frontend JavaScript. For example, you can dynamically change the minimum required age based on a custom user role or custom PHP logic.

Add the following snippet to your child theme's functions.php file:

PHP

add_filter( 'avp_frontend_data', function( $data ) {
    // Example: Dynamically override the minimum age to 25
    $data['minAge'] = 25;
    
    return $data;
} );

3. Import & Export Configuration (Agency Deployment)

If you manage multiple client websites, you do not need to manually configure the popup colors, text, and settings from scratch every time.

  • Export Settings (JSON): Click the Download Export button to generate a clean .json file containing your exact plugin configuration.

  • Import Settings: On a new website, simply paste the raw JSON text into the Import text area and click Import Settings.

Warning: Importing a JSON configuration will permanently overwrite the current settings on the target website. Always ensure you are pasting valid, complete JSON code.

Was this article helpful?