Fundamentals

As we start with our tutorial, it is very important to firstly focus on the previous chapters of this book and make sure you have fully understood your way through the process of creating posts by making POST requests to the posts endpoint. In this chapter, you will be doing something similar, but instead of using the WordPress HTTP API and PHP, you'll use jQuery's AJAX methods. All of the code for that project should go in its plugin file. Another important tip before starting is to have the required JavaScript client installed that uses the WordPress REST API. You will be using the JavaScript client to make it possible to authorize via the current user's cookies.

Note

As a note for this tip would be the fact that you can actually ...

Get Learning WordPress REST API now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.