get_repeater_product_fields()
private static function get_repeater_product_fields( $repeater_field, $lead, $form, &$products, $use_choice_text, $use_admin_label, $index_prefix='', $repeater_items=null )
Recursively collects product fields from a repeater field and adds them to the products array.
Since: next
Source: common.php:4494
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$repeater_field | GF_Field_Repeater | The repeater field to process. | |
$lead | array | The entry or lead array. | |
$form | array | The form object. | |
&$products | array | The products array to populate. | |
$use_choice_text | bool | Whether to use choice text for product names. | |
$use_admin_label | bool | Whether to use admin labels. | |
$index_prefix | string | '' | The index prefix for nested repeaters. |
$repeater_items | array | null | null | Pre-resolved repeater items for nested repeaters. |