Answer by Karel Attl for AJAX and -1 response
You should end all "async" functions with die() or exit, otherwise WordPress does it for you returning -1.
View ArticleAJAX and -1 response
I know this has come up a number of times but it is driving me nuts. I've spend hours trying to debug it. My AJAX isn't working for non-logged in users. Here's me action:...
View Article