How To Deal With WP Ajax Response 0 Error
I am sure many of you get this error when you try to implement a new ajax in wordpress. Even if all your ajax code is right, you still get the error in console or in network tab. It's annoying because anything you try still get the same ajax response.
WP Ajax Response 0
In order to stop getting this response in wordpress, the single thing you need to do is to stop the ajax function. In other words, to stop response 0 in wordpress you need to add the following code at the end of you ajax function in PHP.