Ajax in WordPress

Use Ajax in WordPress custom template or theme.

View/Template (HTML & jQuery)

admin-ajax.php is fix file from wordpress, all ajax request will go to ‘admin-ajax.php’ , and request will work in ‘function.php’ as given below.

function.php

 

Leave a Reply

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