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.

[insert-code id=1]

Add the following functions in JS file.

[insert-code id=2]

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

Leave a Reply