POSTED IN Wordpress

How to use ajax in wordpress?

Hi, In this tutorial I am going to explain how to use jquery ajax in wordpress.
It’s very simple to use if you are familiar with javascript or jquery ajax.
Just Follow 2 Steps:

Step 1 :

Add this PHP code in Functions.php

Step 2:

Add this PHP code in Yourjs.js

Thats all, Enjoy with working ajax in wordpress.

If you like this article don’t forget to share and comment.