Home › Forums › General Issues › differentiate between post types on acf/pre_save_post › Reply To: differentiate between post types on acf/pre_save_post
Hi @japel
A good point,
I don’t have an answer off the top of my head, but my first idea is to look at the data in the $_POST array. Perhaps there is something in there that you can use to differentiate the forms?
The acf_form function contains an option to add extra HTML after the fields. You could use this to add in a hidden input containing an ID or something similar.
Good luck!
Cheers
E
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.