Wrote a start up post on WP_Ajax last time.

Some of you may still surprise, why the callback function for WP_Ajax returning an additional 0 or something else which is very unwanted at the end of your own response.

It's annoying and at first you may get caught confused.

Actually the thing happened for a little different nature of WP_Ajax.

We usually use a return to end a function, but for callback function of WP_Ajax you are doing this wrong. You'll have to use die() or exit at the end of your code instead of return for a clean output.

Only this way you can have a clean output without any 0 or something else.




What's on your mind?


6 Comments

7ef9fc89eeb4681d6b31335183fa22fc?s=100
http://ccmcf.org/ commented about 17 hours ago

I do consider all of the ideas you've presented on your post.

They are very convincing and can certainly work. Still, the posts are too short for novices. May just you please lengthen them a little from next time? Thank you for the post.

4d65dba33887d6be33b7b670bd68de75?s=100
madden mobile coins reddit commented 3 days ago

Link exchange is nothing else but it is just placing the other person's weblog link on your page at suitable place and other person will also do similar in support of you.

C0fe6c1f158e1dd1d3b9f06e6237696d?s=100
csgo skins price commented about 17 hours ago

Hi, i think that i saw you visited my weblog thus i came to “return the favor”.I'm trying to find things to improve my web site!I suppose its ok to use a few of your ideas!!

56bcea041b8bac82dfc5d276c3da4d73?s=100
faux mink lashes for sale commented about 18 hours ago

Howdy! I know this is kind of off topic but I was wondering which blog platform are you using for this website? I'm getting sick and tired of Wordpress because I've had problems with hackers and I'm looking at alternatives for another platform. I would be awesome if you could point me in the direction of a good platform.

53c472ea433778801233c99bd1ff8f92?s=100
dailyviews.org commented 3 days ago

When I originally commented I clicked the "Notify me when new comments are added" checkbox and now each time a comment is added I get three emails with the same comment. Is there any way you can remove me from that service? Appreciate it!

578c281e07731e334fcf14d4b64c448d?s=100
mink eyelash extensions nyc commented 3 days ago

Heya i'm for the first time here. I came across this board and I find It really useful & it helped me out much. I hope to give something back and aid others like you aided me.