Book Image

Learning WordPress REST API

By : Sufyan bin Uzayr, Mathew Rooney
Book Image

Learning WordPress REST API

By: Sufyan bin Uzayr, Mathew Rooney

Overview of this book

The WordPress REST API is a recent innovation that has the potential to unlock several new opportunities for WordPress developers. It can help you integrate with technologies outside of WordPress, as well as offer great flexibility when developing themes and plugins for WordPress. As such, the REST API can make developers’ lives easier. The book begins by covering the basics of the REST API and how it can be used along with WordPress. Learn how the REST API interacts with WordPress, allowing you to copy posts and modify post metadata. Move on to get an understanding of taxonomies and user roles are in WordPress and how to use them with the WordPress REST API. Next, find out how to edit and process forms with AJAX and how to create custom routes and functions. You will create a fully-functional single page web app using a WordPress site and the REST API. Lastly, you will see how to deal with the REST API in future versions and will use it to interact it with third-party services. By the end of the book, you will be able to work with the WordPress REST API to build web applications.
Table of Contents (16 chapters)
Learning WordPress REST API
About the Authors
About the Reviewer


This brings us to the end of this chapter, as well as the book.

We hope you have had a great time learning about REST API and its association with WordPress. By now, you must have mastered how to send requests, read and modify data as well as perform complex queries using REST API on your WordPress site.

However, this book is just the start of your journey towards REST API. As time goes by, over the course of the coming years, REST API in WordPress will progress further, and more and more themes or plugins will make good use of it. As such, preparing right now and getting a command of it will help you get a head start in this domain.

As we close this book, it is advisable to implement REST API in your WordPress projects wherever you need to, but as the last section of this chapter discussed, be sure to keep the limitations in mind! That said, RESTful services are here to stay, and have been around for years, so being familiar with them will work in your favor.

Happy coding!