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