Home › Forums › Bug Reports › acf/update_value filters working improperly › Reply To: acf/update_value filters working improperly
I suspect there is a miscommunication about what ‘original’ means in the context of this filter.
The purpose of the filter is to modify the value that needs to be saved into the database, after input, before saving it in the database. For instance to sanitise it, or do some normalisation on it (i.e. if inputing hashtags, change all characters to lowercase).
I believe ‘original’ is the original value as has been inputted by the user, before any other plugins have changed the value using this filter. Not the value it was before the user is changing it (i.e. the value currently in the database).
Is that correct @hube2 ?
Perhaps changing the name from ‘original’ into ‘first’ or ‘original_input’ could avoid confusion.
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.