The WordPress REST API provides a uniform interface for interacting with the data in a WordPress site.
In this lesson, you'll learn how to use the WP REST API to fetch data from your WordPress site.
You'll discover three internal options for making REST API requests, and then use them to perform a GET request to fetch some public custom post type data.
---
View this lesson and others in this course on Learn WordPress:
https://learn.wordpress.org/course/beginner-wordpress-developer/
0:00 Introduction
0:23 The Bookstore plugin
1:49 Making REST API requests
2:52 Enqueuing the admin JavaScript
5:20 Option 1: Using the Backbone.js client
10:21 Option 2: Using @wordpress/fetch-api
13:22 Option 3: Using @wordpress/core-data
16:17 Differences between options
In this lesson, you'll learn how to use the WP REST API to fetch data from your WordPress site.
You'll discover three internal options for making REST API requests, and then use them to perform a GET request to fetch some public custom post type data.
---
View this lesson and others in this course on Learn WordPress:
https://learn.wordpress.org/course/beginner-wordpress-developer/
0:00 Introduction
0:23 The Bookstore plugin
1:49 Making REST API requests
2:52 Enqueuing the admin JavaScript
5:20 Option 1: Using the Backbone.js client
10:21 Option 2: Using @wordpress/fetch-api
13:22 Option 3: Using @wordpress/core-data
16:17 Differences between options
- Category
- WordPress
- Tags
- 2024, Learn WordPress, WordPress.tv
Be the first to comment



