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!
ACF PRO’s Flexible Content field allows you to create smaller pieces of UI and compose them into whole flexible patterns. In our latest article, we show how to use it to create swappable site sections and integrate it all in a theme.https://t.co/ZRocH8oJSp— Advanced Custom Fields (@wp_acf) January 24, 2023
© 2023 Advanced Custom Fields.