gravityflow_[type]_token_expiration_days
The gravityflow_[type]_token_expiration_days filters allows the lifetime of tokens to be modified.
Examples
The gravityflow_approval_token_expiration_days filter provides a way to modify the lifetime of approval tokens - used in the one-click approve and reject links.
add_filter( 'gravityflow_approval_token_expiration_days', 'sh_gravityflow_email_token_expiration_days', 10, 2); function sh_gravityflow_email_token_expiration_days( $days, $assignee ) { return 90; // generate tokens that expire after 90 days }
The gravityflow_cancel_token_expiration_days filter provides a way to modify the lifetime of cancel tokens used in the one-click cancel links.
add_filter( 'gravityflow_cancel_token_expiration_days', 'sh_gravityflow_cancel_token_expiration_days', 10, 2); function sh_gravityflow_cancel_token_expiration_days( $days, $assignee ) { return 90; // generate tokens that expire after 90 days }
The gravityflow_entry_token_expiration_days filter provides a way to modify the lifetime of tokens generated for the entry link.
add_filter( 'gravityflow_entry_token_expiration_days', 'sh_gravityflow_entry_token_expiration_days', 10, 2); function sh_gravityflow_entry_token_expiration_days( $days, $assignee ) { return 90; // generate tokens that expire after 90 days }
gravityflowformconnector_form_submission_token_expiration_days filter provides a way to modify the lifetime of tokens generated for the form submission link.
add_filter( 'gravityflowformconnector_form_submission_token_expiration_days', 'sh_gravityflowformconnector_form_submission_token_expiration_days', 10, 2); function sh_gravityflowformconnector_form_submission_token_expiration_days( $days, $assignee ) { return 90; // generate tokens that expire after 90 days }
Placement
This code should be placed in the functions.php file of your active theme.