Back to skills

wp-rest-api

development

Handles everything related to the WordPress REST API layer: registering custom routes and controller classes, validating request arguments with JSON Schema, managing authentication with nonces or appl

Setup & Installation

npx skills add https://github.com/WordPress/wp-rest-api --skill wp-rest-api
or paste the link and ask your coding assistant to install it
https://github.com/WordPress/wp-rest-api
View on GitHub

What This Skill Does

Handles everything related to the WordPress REST API layer: registering custom routes and controller classes, validating request arguments with JSON Schema, managing authentication with nonces or application passwords, and exposing custom post types and taxonomies via REST endpoints. Rather than manually tracing WordPress hook order and schema rules, this skill handles the full lifecycle from route registration to response shaping and authentication, covering the edge cases that the official handbook buries in footnotes.

When to use it

  • Working with wp rest api functionality
  • Implementing wp rest api features
  • Debugging wp rest api related issues