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

Current status of REST API

The biggest yearly event about WordPress has recently taken place, the WordCamp US, which was held in Philadelphia. Nearly 2000 WordPress enthusiasts, developers and fans attended the event and quite a few ideas were noted there. First of all, Matt Mullenweg, the founder of WordPress, said that up to 25% of the Web is powered by the CMS he founded, and amongst other interesting stats, REST API was given some attention as well. He stated that the opportunities that the WP REST API is bringing for the CMS, applications powered by JavaScript, and third-party apps is immense given the innovation level that will be brought. Calypso, the new architectural foundation for has not been left without a notice, but we will cover that example a little later. Matt said that developers have actually learned JavaScript in order to approach even more to the current state of WordPress, and that he strongly believes that JavaScript and API-driven interfaces represent...