Home › Forums › Add-ons › Repeater Field › Save value from update_sub_field › Reply To: Save value from update_sub_field
I was just looking into something similar on another topic. Instead of update_sub_field() which only lets you update existing sub fields, use update_field() and pass it an array of values for the sub_fields. There is an example of adding sub fields under “Usage”
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.