Description
Filter the separator between child entry summaries when displaying all child entries either in {all_fields} merge tag or a specific Nested Form field’s merge tag.
Defaults to an <hr>
when the output format is “html”.
Usage
Apply to all Nested Form fields on all forms.
add_filter( 'gpnf_child_entries_separator', 'my_custom_function' );
Apply to all Nested Form fields on a specific form.
add_filter( 'gpnf_child_entries_separator_FORMID', 'my_custom_function' );
Apply to a specific Nested Form field on a specific form.
add_filter( 'gpnf_child_entries_separator_FORMID_FIELDID', 'my_custom_function' );
Parameters
hr string
The horizontal rule to be used.
field \GP_Nested_Form_Field
The current Nested Form field object.
format string
The format in which the child entries will be displayed (‘html’ or ‘text’).
Since
This filter is available since Gravity Forms Nested Forms 1.0.
Examples
Set Custom Separator
Use “—” to separate child entries rather than the default <hr>
.
add_filter( 'gpnf_child_entries_separator', function() {
return '---';
} );