Site icon Cody Paste

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

 

Exit mobile version