The cwcfp_after_conditional_field_grouping filter controls what is displayed after each group of fields when your fields are set to repeat based on the quantity of a given product in the customer's cart.

The filter has three arguments:

  • $content: This is the content that would otherwise be displayed after the field based on the After Field setting.
    <div id="cwcfp-after-conditional-field-1">After Field from settings</div>
  • $repeat: This will be the quantity that the field repeats. 
  • $field_number: The field ID from the Conditional Fields settings. This can help you determine what to display after a certain set of fields.