Beyond admin-ajax, using the WordPress REST API

Typically admin-ajax has been the ‘go to’ for handling asynchronous requests within WordPress. Since WordPress 4.4 we now have the ability to use the WP REST API to handle such requests. The new WP REST API introduced in 4.4 allows us to create structured RESTful interfaces for these requests and removes a lot of the…