@kaust it appears that the way acf/save_post works, or more specifically, the ACF action function works, has been altered. The hook now passes the values to be saved https://www.advancedcustomfields.com/resources/acf-save_post/ and works off of the passed array rather than the $_POST array. What this means is that the alterations that your making to this array are done after ACF had retrieved the values.
What this means is that you’ll need to run your function ACF gets the values from $_POST. I’m not really sure what the best hook for this would be, but I also need to investigate this because I have a plugin that relies on something similar to what you’re doing. I’m thinking that acf/init might be the way to go. I’ll let you know if I find anything else out.
@aydcery you are running into this issue because you are not passing the $_POST[‘acf’] array when calling.
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've just released ACF 5.12.3 with a security fix to prevent arbitrary file uploads to forms with ACF fields.— Advanced Custom Fields (@wp_acf) July 14, 2022
Now that we've released this update, we recommend updating your sites as soon as possible.
© 2022 Advanced Custom Fields.