Home › Forums › ACF PRO › acf/save_post error › Reply To: acf/save_post error
@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 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.