Calling Ajax in WordPress

There are so many ways to call ajax in WordPress, but below is how I do it. 🙂

Add the following functions in PHP file.


Add the following functions in JS file.


Share on FacebookShare on Google+Tweet about this on TwitterPrint this pageEmail this to someoneShare on Reddit

Leave a Reply