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.


	
		     

Leave a Reply