Home › Forums › General Issues › Update ACF Checkbox field option spelling › Reply To: Update ACF Checkbox field option spelling
This is what I would do.
First I would add the new value without removing the old value
Then I would add an acf/load_value filter for the field. In this filter I would loop over the values that are already set and replace the old value if it exists with the new value.
Then I would delete the old value from the field.
At this point I would ignore it. When the user updates the new value will be set and until then the old value will be replace with the new value.
On the other hand if I set up it us using value and labels in the field settings like this
value 1 : label 1
value 2 : label 2
I would change the label end ignore the incorrect spelling on the value
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.