Home › Forums › Backend Issues (wp-admin) › Check if value already exist 2 › Reply To: Check if value already exist 2
Since commenting on this I’ve also found that ACF does pass the current post ID along with other values during the AJAX request. What you need to do is check in the $_POST array in your filter. Not only does it contain the post ID, but it also has all of the values for all of the other fields. So there is really was never any reason for the extra work, I just never thought about looking at what else was already available.
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.