$value = apply_filters( "acf/update_value", $value, $post_id, $field, $value );
is called before any filters are applied. At this point the original value will always be the same as the current value.
Filters can only modify the $value
and cannot alter the$orig_value` (argument #4). Every filter may get a different value but they will always get the same original value.
Testing this with multiple filters set at different priories and displaying both the current value and the original value in each one I get a constantly changing
$orig_value (argument #4 to my filters) remains unchanged.
I don’t understand how is this working in a way that’s unexpected?
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!
© 2023 Advanced Custom Fields.