Home › Forums › ACF PRO › acf_form Use form but prevent post and post_meta creation › Reply To: acf_form Use form but prevent post and post_meta creation
This has not been tested and I don’t know if it will work.
Use an acf/pre_save_post filter https://www.advancedcustomfields.com/resources/acf-pre_save_post/
You’ll need to implement some checking to make sure you’re dealing with the right form, and you’ll also need to look in
$_POST['acf'] to get the values.
Once you’re done processing the form
ACF only begins the save process based on this having a value…. I think.
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!
© 2022 Advanced Custom Fields.