Home › Forums › ACF PRO › Check if field has changed when save to change mail › Reply To: Check if field has changed when save to change mail
Checking a repeater field will be difficult. Not only to you need to contend with the fact that they are arrays of values, someone could also alter the order of the rows.
You may also be running into differences between inputted values and stored values that have nothing to do with something being changed. There can be instances where the values in $_POST[‘acf’] contain slashes \
While comparing arrays is possible, it would be a complicated process and I’m not sure that I can give you a reliable solution for, especially since the order of the rows can be changed. The best possible alternative is the serialize both values and compare that answer here https://stackoverflow.com/questions/7389176/compare-multidimensional-arrays-in-php
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.