This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Filter is in wpforms/src/Forms/Token.php - get_valid_tokens(); | |
// Create our array of times to check before today. A user with a longer | |
// cache time can extend this. A user with a shorter cache time can remove times. | |
$valid_token_times_before = apply_filters( | |
'wpforms_form_token_check_before_today', | |
[ | |
( 2 * DAY_IN_SECONDS ), // Two days ago. |
OlderNewer