The gform_advancedpostcreation_term_separator filter allows you to change the separator character used when separating term names in Gravity Forms.
Usage
add_filter('gform_advancedpostcreation_term_separator', 'your_function_name', 10, 1);
Parameters
- $separator (string): The separator to be filtered.
More information
See Gravity Forms Docs: gform_advancedpostcreation_term_separator
Examples
Change the term separator to a pipe character
This example changes the term separator character to a pipe (|) character.
add_filter('gform_advancedpostcreation_term_separator', 'set_separator', 10, 1); function set_separator($separator) { return '|'; }
Change the term separator to a semicolon
This example changes the term separator character to a semicolon (;).
add_filter('gform_advancedpostcreation_term_separator', 'change_separator_to_semicolon', 10, 1); function change_separator_to_semicolon($separator) { return ';'; }
Change the term separator to a comma
This example changes the term separator character to a comma (,).
add_filter('gform_advancedpostcreation_term_separator', 'change_separator_to_comma', 10, 1); function change_separator_to_comma($separator) { return ','; }
Change the term separator to a slash
This example changes the term separator character to a forward slash (/).
add_filter('gform_advancedpostcreation_term_separator', 'change_separator_to_slash', 10, 1); function change_separator_to_slash($separator) { return '/'; }
Change the term separator to a custom character
This example changes the term separator character to a custom character, in this case, an asterisk (*).
add_filter('gform_advancedpostcreation_term_separator', 'change_separator_to_custom', 10, 1); function change_separator_to_custom($separator) { return '*'; }