Support

Account

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.