I couldn’t find a natural way, maybe I’m missing something?
I had a thought to create a function:
$post_id = '123'; // post ID
$repeater_field = 'repeater_name';
$rows_to_add = [
['sub_field_1' => 'Value 1', 'sub_field_2' => 'Value 2'],
['sub_field_1' => 'Value 3', 'sub_field_2' => 'Value 4'],
];
foreach ($rows_to_add as $row) {
add_row($repeater_field, $row, $post_id);
}
but its have limits so i using meanwhile POST + loop in AJAX/PHP and unique form with + option after every input