betterangels / better-angels

The Better Angels are a group of anarchists committed to feminist, anti-racist, anti-capitalist struggle who use direct action software development as a technique of liberatory resistance.
https://betterangels.github.io/
55 stars 12 forks source link

Use WP-API instead of manual admin side AJAX requests #89

Closed fabacab closed 8 years ago

fabacab commented 8 years ago

We should use the WP-API that's landed in WordPress core as of version 4.4.

Casual searching returned at least one promising resource for me to consume in preparation for the shift, called Using WP REST API in WordPress 4.4, which begins:

Essentially, what we’re getting in 4.4 is a great, RESTful, replacement for the Plugin API’s admin_ajax_ hook system that provides a simpler and more robust way of making custom endpoints for plugins and apps.

This is exactly what we should be moving to.

fabacab commented 8 years ago

We're now using WP-API for the "built-in" chat room, see #126.