Home › Forums › General Issues › acf/save_post not firing on custom plugin/localhost › Reply To: acf/save_post not firing on custom plugin/localhost
Plugin seems to not work on localhost for some reason with the exact same files, I am running it on my webserver and it’s firing fine.
the only thing I dont understand @john is that for
if( empty($_POST['acf']) ) {
echo '<script>alert("nodata");</script>';
}
this still works even though I edit the fields on the post. I thought it was checking for if there was no custom fields on the post type (so there would be no data in the $_POST request). But it fires on the post type where acf has it’s custom fields.
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.