Home › Forums › ACF PRO › acf/update_value/key= vs acf/update_value/type= › Reply To: acf/update_value/key= vs acf/update_value/type=
That sounds like a bug to me. The key and name parameters should also return the full array rather than the actual value saved on the repeater field in the DB (the repeater fields saved value IS just the number of rows).
I’ll assign @elliot to this and we’ll see what he says 🙂
In the meantime you could use the type parameter and immediately do a check of the field name and just hit return $field;
if it’s not correct.
Something like
if($field['name'] != 'blah')
return $field;
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.