What is This?
WP Ajax Helper exists to simplify the process of performing Ajax requests in WordPress.
With a simple, easy-to-understand syntax, it handles nonces and validation automatically, freeing you up to worry about more important things.
It also interprets the Ajax payload, passing it to your callback function as an array or string as appropriate, as well as interpreting the callback’s response and returning it to the browser either as a string or as JSON.
With an simple validation component, you can easily restrict the user permissions under which the callback function will run.
View the usage examples, and full documentation on GitHub.