Returning content via jQuery without footers on admin pages
What you want to do is define a callback function to handle your request and to do that you need to hook onto: wp_ajax_(action) …where “(action)” is the name of your “action” parameter that needs to be supplied in your AJAX request (more on that in a moment). First, define a callback function in your … Read more