Have you ever wanted to use that cool AJAX thing, what ever it is? You know, that cool thing that all the cool kids are using? What is AJAX, anyway?
What is AJAX?
AJAX in WordPress
Now that we have an idea of what we are working towards, let’s take a look at some basic code examples.
data, then we are going to setup a function to receive the response from the server.
A note on the
data being sent: a value for
action must be sent in order to use the
WP AJAX Action
wp_ajax_my_action, simply responds with the message “Message received!”, however, here we can access data sent from the JS Handler and return any response that we would like.