Hi
I have a product with attached repeater field. On product save, I want to add a new row.
repeater field has 4 dates in it (in format ddmmYY).
Currently, there is no repeater data in the product (I can see repeater and button to add a new row).
So, for a test I do following (in ‘save_post_product’ hook):
rows = [[
'event_date' => "30062025",
'shipping_date' => "30062025",
'return_send_date' => "30062025",
'return_arrival_date' => "30062025",
]];
$status = update_field('rental_info', $rows, $post_id);
$status is true, but new row is not appearing in the product.
I tried to use subfield IDs instead of names. Result is same. Also tried to use field ID instead of repeater name. Same.
Any ideas why new row is not being created?