Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This hook can be used to extend the valid token times after current date. Learn more about Antispam Javascript token.
- It is a filter for extending the timeframe for our Check entries for spam using JavaScript setting. If this isn't enabled, this filter won't do anything.
- The error message that is associated with this filter is Form token is invalid. Please refresh the page.
Usage
add_filter( 'frm_form_token_check_after_today', 'my_custom_function' );
Parameters
- $times (array)
Examples
Extend time to check after today.
This example will extend time to check after today.
add_filter( 'frm_form_token_check_after_today', 'my_custom_function' );
function my_custom_function( $times ) {
$times = array( 50 * MINUTE_IN_SECONDS ); // Add in 50 minutes past today.
return $times;
}