From the course: WordPress: REST API

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Four practical examples

Four practical examples - WordPress Tutorial

From the course: WordPress: REST API

Start my 1-month free trial

Four practical examples

- [Narrator] Understanding how the WordPress REST API works from a theoretical perspective is one thing, getting it to work in practice is another. So in this chapter I want to provide you with four practical examples of how to use the REST API in four different ways for four different purposes. Each of these examples is complete and serves as a starting point for you own experimentation and exploration of the REST API. Feel free to use these examples and their code in your own themes and plug-ins and apps to build new and exciting experiences with the REST API. In this chapter, we'll cover, first, a child theme that displays dynamic content via the REST API. Then a plug-in that adds front-end editing to posts within WordPress using the REST API and cookie authentication. Next, a standalone app that uses the REST API to display content from any WordPress site live on the web. And finally, a standalone app that lets your edit…

Contents