Skip to main content

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

NameTypeDefaultDescription
$repeater_fieldGF_Field_RepeaterThe repeater field to process.
$leadarrayThe entry or lead array.
$formarrayThe form object.
&$productsarrayThe products array to populate.
$use_choice_textboolWhether to use choice text for product names.
$use_admin_labelboolWhether to use admin labels.
$index_prefixstring''The index prefix for nested repeaters.
$repeater_itemsarray | nullnullPre-resolved repeater items for nested repeaters.