Home › Forums › Add-ons › Repeater Field › update_field() will not remove lines from repeater › Reply To: update_field() will not remove lines from repeater
The $new table is a repeater of “basic” fields, no additional sub components.
In my tests, the only way to delete row was:
1. delete the whole table
2. update_field(with new values)
I cannot use it becuasse repeater performance is poor.
An update of a repeater: 15 rows by 27 fields in each row > 40 seconds!
Unacceptible for my clients.
PLEASE let me know if update_field (on a repeater) will NOT remove rows.
I can calculate the diff(oldtable, newtable) and perform “micro-repeater-update-calls’
But I would like to know before that this is my only workaround.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
CPT registration is coming to ACF! We demoed the new feature during the most recent session of ACF Chat Fridays. Check out the summary for the details. https://t.co/k2KQ3WWBAz— Advanced Custom Fields (@wp_acf) March 7, 2023
© 2023 Advanced Custom Fields.