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 generate unique form keys by allowing custom form key separators.
Usage
add_filter( 'frm_unique_form_key_separator', 'use_custom_form_key_separator' );
Parameters
- None
Examples
Add custom form key separator
Use this example to add a custom form key separator to generate a unique form key. For example, if you duplicate a form, a result could be formkey2. With the custom separator, you can change it so it would become formkey___2.
add_filter( 'frm_unique_form_key_separator', 'use_custom_form_key_separator' );
function use_custom_form_key_separator() {
return '___';
}