Home › Forums › General Issues › acf/save_post issue/alternatives › Reply To: acf/save_post issue/alternatives
Although it doesn’t particularly solve my problem as I wanted I guess adding the wp_delete_post($post_id)
under failed conditionals will get rid of the empty posts, if otherwise, someone can correct me on that. Should I also add it in the condition that checks if $_POST['acf']
is empty before the return?
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.