Home › Forums › General Issues › Possible to check if value changed? › Reply To: Possible to check if value changed?
Not sure you can do it with that hook as the hook will give you all the new data not a comparison between new and old. Can you explain exactly what it is you’re trying to achieve, there might be another way to achieve it.
Depending on the your implementation, you may use the acf_load hook to store the values in a variables and then in the pre_save compare the values
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.