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 TwitterShare on LinkedInPrint this pageEmail this to someone

Leave a Reply

Your email address will not be published. Required fields are marked *