Add ajax functionality for Wordpress