cg_legalsigning_token_name
Description
This filter allows you to change the token name used when applying a signing session to a form from the default “fg_legalsigning_token.”
This can be especially helpful if you need to add a specific string of text to cookies used on your site to bypass certain caching solutions like from your host or Cloudflare.
Note: If you change the token name using this filter, any in progress signing session will need to be started over from fresh because signing related emails will have been using the original token name, not the new one you apply via this filter.
Usage
add_filter( 'cg_legalsigning_token_name', 'your_function_name', 10, 2 );Parameters
- $token string
The token name used
Examples
The follow example shows how to change the default signing session token name to “wp-lstoken.”
add_filter( 'cg_legalsigning_token_name', function( $token_name ) {
return 'wp-lstoken';
}, 10, 1);Since
This filter was added in Legal Signing 4.4.0.