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 - WordPress Tutorial
From the course: WordPress: REST API
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Four practical examples1m 24s
-
(Locked)
Read only: Load next post using REST API8m 23s
-
(Locked)
Cookie authentication: Front-end editing6m 21s
-
(Locked)
Basic standalone app7m 22s
-
(Locked)
JWT authentication: Third-party editing7m 13s
-
(Locked)
Challenge: Add dynamic related posts navigation4m 32s
-
(Locked)
Solution: Add dynamic related posts navigation5m 7s
-
(Locked)
-