# searchpro/4.0.21/inc/thirdparty/plugin/WPForms.php

BerqWP – All-In-One Optimization for Core Web Vitals, Cache, CDN, Images, CSS &amp; JavaScript, version 4.0.21. 21 lines.

- Page: https://pluginprobe.com/plugins/searchpro/4.0.21/code/inc/thirdparty/plugin/WPForms.php
- Raw: https://pluginprobe.com/plugins/searchpro/4.0.21/raw/inc/thirdparty/plugin/WPForms.php
- Modified: 2025-02-12T15:11:00+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/searchpro/4.0.21/code/inc/thirdparty/plugin/WPForms.php#L10-L20`.

```php
<?php

if (!defined('ABSPATH')) exit;

class berqWPformsInt extends berqIntegrations {
    function __construct() {
        add_filter( 'wpforms_form_token_check_before_today', [$this, 'increase_token_ttl'] );
    }

    function increase_token_ttl( $times ) {
        // Add token lifespans for each day up to 30 days.
        for ( $day = 1; $day <= 30; $day++ ) {
            $times[] = $day * DAY_IN_SECONDS;
        }
        return $times;
    }

    
}

new berqWPformsInt();
```
