Home › Forums › General Issues › ACF save post, check if new post › Reply To: ACF save post, check if new post
ACF does not pass this information. Post ID will always have an idea and will not be ‘new_post’ when acf/save_post is called.
If you are using a front end form I would suggest using acf/pre_save_post.
If this is an admin form then the only way to do this would be to use the built in wp save_post hook with a priority > 10 https://codex.wordpress.org/Plugin_API/Action_Reference/save_post
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.