Codebase Overview

There are many functions and hooks through which our REST API requests pass. It is important to know these functions and hooks to make the most out of the REST API in WordPress.

In the following videos, we will not only explore these functions along with their corresponding actions but also provide a step-by-step walkthrough of their execution flow, from receiving the REST request to processing it and sending the REST response accordingly.

Explore these videos for insights and tutorials on the REST API Codebase. This section comprises 2 modules with a combined duration of approximately 17 minutes.

Codebase Overview

Video ContentTime
Pt 1: Codebase Overview – REST API11:23
Pt 2: Codebase Overview – REST API5:50

Explore these videos for insights and tutorials on the REST API Execution Flow. This section comprises 2 modules with a combined duration of approximately 15 minutes.

Execution Flow

Video ContentTime
Execution Flow – Request7:49
Execution Flow – Response6:57

Ideas to Explore:

  • Using WP REST Development, how can I achieve the following:
    • Upon a POST request, verify if the post body is valid JSON
    • If it is not, return an error with 405 status code
  • What is statelessness in REST?