Home › Forums › General Issues › saving different value than $_POST['acf']['field_xxx'] › Reply To: saving different value than $_POST['acf']['field_xxx']
If you want to modify values as shown here
$_POST['acf']['field_60526244663f2'] = $new_calc_collected_from_other_sources;
so that acf uses these values when it updates fields then you need to use a priority in your add_action() of < 10 so that it happens before ACF saves values.
add_action('acf/save_post', 's4f_save_post_step_content', 1);
Once ACF has updated values at priority 10, altering the contents of $_POST['acf']
will have no effect.
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.