The filter is used to extend the cache times used for the form token.


(array) An array of times to check before today.



More Information

The wpforms_form_token_check_before_today filter can be used to extend the cache times that WPForms uses on the form tokens for the before times.

This filter is used mostly to catch edge cases like the form page loading and submitting on two different days. For a working example, please see the Snippet Reference link below.

There is another available filter for extending the cache times after as well. Please see the wpforms_form_token_check_after_today filter.

Snippet Reference: How to Change the Cache Time on Your Form Token

Additional Filter Reference: wpforms_form_token_check_after_today