Home › Forums › Front-end Issues › Stop acf/save_post in its tracks › Reply To: Stop acf/save_post in its tracks
You need to hook into acf/save_post
before ACF saves values, so with a priority of < 10
add_action('acf/save_post', 'YOUR_FUNCTION', 1);
Then you need to access the values in $_POST['acf']
because the fields have not been saved yet. Once you are done then you can unset $_POST['acf']
and this will cause ACF to not save anything.
Doing any of this after ACF has saved the values will be to late.
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.