Support

Account

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