
Learn how the WordPress REST API provides access to content and functionality via HTTP requests and JSON, enabling get, post, update, and delete operations for WordPress themes, plugins, and apps.
Explore the hypertext transfer protocol basics, including requests and responses, status lines and codes, request lines, headers, and message bodies, and how these drive the WordPress REST API.
Explore how to make HTTP requests in and out of WordPress using the backbone JavaScript client, WordPress REST API and HTTP API, WP-CLI, browser, Postman, and fetch.
Make HTTP requests to the WordPress REST API using the browser and Postman, view request and response headers in the network/console, and explore routes and JSON data.
Discover three ways to make HTTP requests to the WordPress REST API from inside WordPress: a built-in Backbone API client for JavaScript, the PHP HTTP API, and WP-CLI commands.
Learn to use the bundled WordPress backbone API client to fetch posts via the WordPress REST API from a theme and render them with JavaScript.
Use PHP with the WordPress HTTP API to perform wp_remote_get, retrieve and decode the first post, and build a widget that displays your latest post.
Explore how to use WP-CLI REST commands to interact with the WordPress REST API from the command line, fetching post lists, titles, authors, and pagination.
Learn how to make HTTP requests outside WordPress using JavaScript options like XMLHttpRequest, Fetch API, and jQuery Ajax, plus PHP HTTP libraries and HTTPie, with examples and header insights.
Kick off a WordPress REST API call using XMLHttpRequest to fetch posts and render them with plain JavaScript, parsing JSON and displaying five post summaries on the page.
Fetch the WordPress REST API with JavaScript to retrieve the latest five posts, parse JSON, and render them on the page with basic error handling.
Learn to perform a get request to the WordPress REST API with jQuery AJAX to fetch the top five posts and handle responses with simple success and error logic.
Learn to use the WordPress REST API JavaScript client, set up with npm, configure the endpoint, fetch five latest posts, and render results with vanilla JavaScript.
Learn how to make HTTP requests to the WordPress REST API from PHP using the PHP Requests library, including decoding JSON and rendering post titles and links.
Demonstrates using HTTPie from the command line to issue a get request to a single post in the WordPress REST API, show request and response headers, and inspect post data.
Examine six ways to access the WordPress REST API from outside WordPress, using XMLHttpRequest, fetch with polyfill, and jQuery Ajax, plus a JavaScript REST API client to simplify custom requests.
Explore discoverability in the WordPress REST API by examining the API index, namespaces, and routes, and learn how to access and navigate the site's API endpoints.
Explore routes, endpoints, and schema in the WordPress REST API. Learn how routes map HTTP methods to core functions and how to view schema with options requests.
Explore the core WordPress REST API endpoints, including posts, pages, media, categories, tags, and users, and learn endpoint structures and authentication needs for revisions and settings.
Explore the post schema in the WordPress REST API, including id, date, slug, title, and content. See how embed enriches responses with author, categories, tags, and featured media.
Discover WordPress REST API category endpoints, including id, count, description, name, slug, and parent relations, and learn how taxonomy governs categories and linked posts.
Explore the WordPress REST API tag endpoints, including the tag schema, slug, name, count, and related links. See how to fetch posts by tag with a query.
Explore WordPress taxonomy endpoints, including categories and tags, their hierarchical structure, labels and capabilities, and how to access them via authenticated GET requests using the rest base.
Explore how to use the WordPress REST API to fetch and render comments, including post-specific queries, embedded author and reply data, moderation status, and rich links.
Explore the WordPress REST API page endpoints and fields like id, date, slug, status, title, content, and template, and learn how password protected content differs for authenticated versus unauthenticated requests.
Explore WordPress REST API post types, including posts, pages, attachments, and custom types, and learn how descriptions, hierarchical structure, labels, and capabilities shape access and interaction with content.
Explore the WordPress REST API media endpoints and media schema, including fields like alt text, caption, description, mime type, and post assignments.
Explore WordPress post statuses and how they affect visibility, authentication, and admin filtering, including draft, pending, private, protected, publish, and trash.
Explore the WordPress rest API user endpoints and learn which fields are public versus authenticated, including id, username, display name, locale, nickname, slug, roles, and avatar.
Practice building a decoupled WordPress site as a single-page app with the WordPress REST API and JavaScript, including dynamic menus, media, blog posts with comments, and category and tag navigation.
Learn how to pass arguments to WordPress REST API endpoints using HTTP requests and query syntax, including per_page and author filters. Identify relevant list arguments to refine queries.
Explore the WordPress rest api _links and _embed, learn how links connect posts, authors, and media, and understand that embeds can increase queries and loading time.
Learn to craft custom WordPress REST API requests by passing query parameters and using ? and & format while exploring posts, pages, media, categories, and comments in API reference.
Explore how to craft custom post requests with context, pagination, date ranges, author filters, and category and tag queries using include, exclude, offset, and order by options.
Demonstrates how to customize WordPress REST API page requests with list pages arguments, including menu order, parent/child pages, include/exclude, and order by, for targeted page retrieval.
Practice custom requests against WordPress REST API endpoints, explore media and comments arguments, and add queries to pull posts by author or related content.
Build a decoupled WordPress REST API powered JavaScript site that uses posts, pages, media, categories, tags, comments, and users in a single-page app.
Setting up a WordPress REST API project, this video covers enabling the REST API, importing media, configuring Webpack and npm, and building modular JavaScript to render site info and content.
Learn to dynamically pull the WordPress REST API site title and description, render them in a header component, and wire configuration, helpers, and a vanilla JavaScript architecture.
Learn to build a dynamic main menu by querying WordPress REST API for top-level pages, ordering by menu order, and rendering menu items with a layered component architecture.
Initialize the router, listen for hash changes, derive the slug from the URL, and load the corresponding page components for a WordPress app.
Set up the page component to fetch a WordPress page by slug, render content and featured image via helpers, and handle the 404 page within a router-driven flow.
Learn how to list recent posts on a blog page by fetching posts via the WordPress REST API, render titles as links, and route to display single posts.
Explore rendering a single post from a blog listing using slug-based routing, API requests, and component architecture to fetch a post, display its title, and plan comments integration.
Learn how to fetch and render WordPress post comments via the REST API, loading comments after posts, using a comments index and component, including gravatar, author, date, and markup formatting.
Query the WordPress REST API to build a categories widget that lists categories with post counts and links to category pages, then render it in the sidebar.
Build a category archive page by reusing the blog listing pattern, adding a category header and posts with featured images, driven by category slug routing.
Build and compare a WordPress tags widget with the categories widget on the blog page, link to /tag/{tag name}, and render tag name with its count.
Build a tag archive page in WordPress by wiring tag index, slug-based queries, and post lists, while refining component architecture and router logic.
Explore building a WordPress media gallery by querying the media endpoint, displaying image captions and alt text, and handling different media types with front end components and async loading.
Build a user listing and a single user page powered by the WordPress rest api. Use routes, slug extraction, and on-the-fly data formatting to render user content like posts.
Resolve a user slug to an ID and fetch that user's posts on their page using the WordPress REST API client, highlighting slug limitations and two-step querying.
Wrap up by reinforcing a component-based approach to the WordPress REST API using the Node WordPress API client, routing, and helper libraries, and encourage practice with configurable API endpoints.
Discover how WordPress REST API authentication verifies user credentials with cookies and nonces, and compare basic auth and JWT approaches for decoupled apps handling protected requests.
In this course you get an in-depth introduction to working with the WordPress REST API.
We start with going over how HTTP and REST APIs work and practice making demo requests. Then, we explore various ways to make requests with JavaScript to the WordPress REST API, both from inside WordPress and outside of WordPress.
The course then goes in depth over all of the routes, schema and endpoints in the WordPress REST API along with demos and practice getting different types of data from the WordPress REST API, including posts, pages, media and more.